/* ======================================================================
   /public_html/assets/css/homepage/login.css
   Compact login — right-aligned fields, centered heading (tuned)
   Theme: Teal/Navy (matches nama logo)
   ====================================================================== */

/* ---- Teal/Navy theme tokens (scoped to this page) ------------------- */
.auth-page{
  /* brand */
  --brand:#0f7177;        /* teal-600 */
  --brand-2:#0a656a;      /* teal-700 (darker for gradient end) */

  /* neutrals */
  --card:#ffffff;
  --ink:#0f172a;
  --muted:#64748b;
  --bd:#e6edf7;

  /* shadows tuned to teal */
  --shadow-soft:0 18px 40px rgba(10,101,106,.08);
  --btn-shadow: 0 10px 22px rgba(15,113,119,.20);

  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 90px 24px; /* ↑ a touch more breathing room around the card */
}

/* Card — slightly larger overall */
.auth-card{
  width: min(1040px, 96vw);          /* ↑ wider */
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1fr 520px;  /* form | brand (↑ wider brand area) */
  gap: 22px;                         /* ↑ more space between columns */
  padding: 56px 42px;                /* ↑ more internal padding */
  min-height: 500px;                 /* ↑ taller container */
}

/* ---------- Form column ---------- */
.auth-form-col{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 8px;                  /* ↑ tiny extra space */
}

.auth-head{ margin-bottom: 8px; }
.auth-title{
  margin: 0 0 6px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
}
.auth-title.big{ font-size: 22px; }

/* Form width a bit looser so fields don’t feel cramped */
.auth-form.wide{ max-width: 540px; } /* ↑ from 480px */

/* Labels: RIGHT aligned + lighter weight */
.label{
  display: block;
  margin: 10px 2px 6px;              /* ↑ a bit more air above/below */
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  text-align: right !important;
}

/* Inputs: compact + lighter, right-aligned */
.input{
  width: 100%;
  padding: 9px 14px;                 /* unchanged height */
  border: 1px solid var(--bd);
  border-radius: 999px;
  background: #f6f8fb;
  outline: none;
  font-size: 11px;
  font-weight: 400;
  direction: rtl;
  text-align: right;
  transition: box-shadow .2s, border-color .2s, background .2s;
}
.input::placeholder{
  color: #98a2b3;
  direction: rtl;
  text-align: right;
}
.input:focus{
  border-color: color-mix(in oklab, var(--brand) 60%, transparent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, transparent);
  background: #fff;
}

/* Even vertical rhythm between fields and button */
.field + .field{ margin-top: 20px; }  /* ↑ keep spacing proportional */
.actions{ margin-top: 20px; }

/* Button: compact */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  user-select: none;
  font-weight: 800;
  letter-spacing: .15px;
  transition: transform .06s ease, box-shadow .2s ease, opacity .2s;
}
.btn.block{ width: 100%; }
.btn.lg{
  padding: 11px 14px;                /* keep size; card growth handles scale */
  font-size: 15px;
  border-radius: 999px;
}
.btn.primary{
  background-image: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: var(--btn-shadow);
}
.btn.primary:hover{ transform: translateY(-1px); }
.btn.primary:active{ transform: translateY(0); opacity: .95; }

/* Demo credentials (inside the card) */
.demo-credentials{
  margin-top: 12px;                  /* ↑ tiny bump */
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}
.cred-line{
  opacity: 0;
  transform: translateY(6px);
  animation: credFade .6s ease forwards;
}
.cred-line:nth-child(1){ animation-delay: .10s; }
.cred-line:nth-child(2){ animation-delay: .22s; }
.cred-line:nth-child(3){ animation-delay: .34s; }
@keyframes credFade{ to{ opacity: 1; transform: translateY(0); } }
.demo-credentials code{
  background: #f3f4f6;
  border: 1px solid var(--bd);
  border-radius: 7px;
  padding: 0 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  direction: ltr;
  unicode-bidi: plaintext;
}

/* Brand column + slightly larger logo */
.auth-brand-col{
  display: grid;
  place-items: center;
  padding: 8px;                      /* ↑ tiny bump */
  background: transparent;
  border-radius: 10px;
}
.brand-img{
  width: min(440px, 92%);            /* ↑ from 360 → 440 */
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.06));
}

/* ========== Demo trigger button ========== */
.demo-trigger-wrap{ margin-top: 14px; text-align: center; }
.demo-trigger{
  background: transparent;
  border: 1px solid var(--bd);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.demo-trigger:hover{
  background: #f3f4f6;
  border-color: #dfe3ea;
  color: var(--ink);
}

/* ========== Modal ========== */
.modal-overlay[hidden]{ display:none; }
.modal-overlay{
  position: fixed; inset: 0;
  background: rgba(15,23,42,.35);
  display: grid; place-items: center;
  padding: 16px; z-index: 50;
}
.modal-card{
  width: min(440px, 92vw);           /* ↑ slightly wider modal */
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  padding: 18px 20px 20px;           /* ↑ a bit more padding */
  position: relative;
}
.modal-close{
  position: absolute; top: 8px; left: 10px;  /* RTL: close on left */
  background: transparent; border: 0; font-size: 22px;
  color: var(--muted); cursor: pointer; line-height: 1;
}
.modal-title{
  margin: 0 0 10px; font-weight: 800; color: var(--ink); font-size: 18px; text-align: center;
}
.modal-body p{
  margin: 6px 0; color: var(--ink); font-size: 14px; text-align: center;
}
.modal-body code{
  background: #f3f4f6; border: 1px solid var(--bd); border-radius: 8px; padding: 0 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px; direction: ltr; unicode-bidi: plaintext;
}
