/* modern-login.css
   Clean, minimal, responsive login card
   Put this file in: ${resourceURL}/css/modern-login.css
*/

/* IMPORT: optional modern font (uncomment if available in your environment) */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap'); */

:root{
  --bg-start: #f5f8fa;
  --bg-end: #e6eef6;
  --card-bg: #ffffff;
  --primary: #2b6cb0;
  --primary-dark: #2c5282;
  --muted: #6b7280;
  --shadow: 0 10px 30px rgba(16,24,40,0.06);
  --radius: 12px;
}

/* Base */
html,body {
  height: 100%;
  margin: 0;
  font-family: "Arial", "Helvetica", sans-serif;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  color: #1f2937;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Wrapper centers the layout */
.modern-login-wrapper{
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 36px auto;
  padding: 24px;
  box-sizing: border-box;
}

/* Left / Right panels */
.login-panel {
  flex: 0 1 420px;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.carousel-panel {
  flex: 1 1 600px;
  min-width: 280px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Card */
.login-card{
  background: var(--card-bg);
  width: 100%;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

/* Brand and title */
.login-brand {
  text-align: left;
  margin-bottom: 10px;
}
.login-heading {
  margin: 0 0 18px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

/* Form */
.login-form {
  width: 100%;
}

/* Field */
.field {
  margin-bottom: 14px;
}
.field-label {
  display:block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom:6px;
  font-weight:500;
}
.field-control {
  display:flex;
  align-items:center;
  gap:10px;
}

/* Icons inside fields */
.field-icon{
  opacity: 0.9;
  flex: 0 0 auto;
}

/* Inputs */
.input-text {
  flex: 1 1 auto;
  padding: 10px 12px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fbfdff;
  transition: all .15s ease;
  outline: none;
  box-sizing: border-box;
}
.input-text:focus{
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(43,108,176,0.12);
  background: #ffffff;
}

/* dep readonly + button */
.dep-wrap {
  display:flex;
  width:100%;
  gap:8px;
  align-items:center;
}
.dep-readonly {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background:#f7fafc;
  flex:1 1 auto;
}
.btn-ref{
  background: transparent;
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  min-width:44px;
}
.btn-ref:hover { background:#f3f6f9; }

/* Primary button */
.actions { margin-top:6px; }
.btn-primary {
    /*display:inline-block;
    /*width:100%;
    /*padding:12px 14px;*/
    border-radius: 10px;
    border: 0;
    background: var(--primary);
    color: #fff;
    /*font-weight:600;*/
    font-size:16px;
    cursor:pointer;
    transition: background .12s ease, transform .06s ease;
  }
  .btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

  /* link */
.link-row { text-align:left; margin-top:10px; }
.link-muted { color: var(--primary); font-size: 14px; text-decoration:none; }
.link-muted:hover { text-decoration: underline; }

/* Carousel styles (simple) */
.carousel-inner-wrapper{
  width:100%;
  max-width: 820px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.carousel {
  width:100%;
  height:100%;
  position:relative;
}
.carousel .carousel-indicators {
  display:flex;
  gap:8px;
  justify-content:center;
  margin-bottom: 12px;
  padding-left:0;
  list-style:none;
}
.carousel .carousel-indicators li{
  width:10px; height:10px; border-radius:50%;
  background: #cbd5e0;
  display:inline-block;
  cursor:pointer;
}
.carousel .carousel-indicators li.active { background: var(--primary); }

.carousel-inner { position:relative; overflow:hidden; border-radius:10px; }
.carousel-item {
  display:flex;
  align-items:center;
  justify-content:center;
}
.carousel-item img {
  width: 100%;
  height: auto;
  display:block;
  max-height: 420px;
  object-fit: contain;
}

/* Simple controls */
.carousel-control {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  border: none;
  cursor:pointer;
}
.carousel-control.prev { left:8px; }
.carousel-control.next { right:8px; }

/* Footer */
.site-footer{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  width:100%;
  max-width:1200px;
  margin: 18px auto 40px auto;
  padding: 0 24px;
  box-sizing:border-box;
  color:var(--muted);
  font-size:13px;
}
.site-footer .footer-link { color:var(--muted); text-decoration:none; }
.site-footer .footer-link:hover { text-decoration:underline; }

/* responsive footer image */
.responsive-footer-image { max-width:1200px; margin: 0 auto 40px auto; padding: 0 24px; box-sizing:border-box; }
.img-footer-res { width:100%; max-height:120px; object-fit:cover; border-radius:8px; }

/* loading box small */
.box { position:fixed; right:24px; bottom:24px; background:#fff; border-radius:8px; padding:12px; box-shadow:var(--shadow); z-index:2000; }

/* small screens */
@media (max-width: 900px) {
  .modern-login-wrapper { flex-direction:column; gap:18px; padding:18px; }
  .carousel-panel { order:2; width:100%; }
  .login-panel { order:1; width:100%; }
  .carousel .carousel-indicators { gap:6px; }
  .carousel-item img { max-height: 260px; }
  .site-footer { flex-direction:column; gap:8px; text-align:center; padding:0 16px; }
}
