/* ======================================================================
   /public_html/assets/css/homepage/login.css
   Compact login — right-aligned fields, centered heading (tuned)
   ====================================================================== */

/* Page (more vertical breathing room) */
.auth-page{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 80px 20px; /* space above/below the card */
}

/* Card */
.auth-card{
  width: min(880px, 95vw);
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(2,84,154,.08);
  display: grid;
  grid-template-columns: 1fr 440px; /* form | brand */
  gap: 18px;
  padding: 46px 35px;        /* ↑ more vertical padding */
  min-height: 420px;         /* ↑ make the container taller */
}

/* ---------- Form column ---------- */
.auth-form-col{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 6px;
}

.auth-head{ margin-bottom: 6px; }
.auth-title{
  margin: 0 0 4px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
}
.auth-title.big{ font-size: 24px; }

.auth-form.wide{ max-width: 480px; }

/* Labels: RIGHT aligned + lighter weight */
.label{
  display: block;
  margin: 8px 2px 4px;
  font-weight: 600;              /* lighter than bold */
  font-size: 12px;
  color: var(--muted);
  text-align: right !important;
}

/* Inputs: compact + lighter, right-aligned */
.input{
  width: 100%;
  padding: 9px 14px;             /* compact height */
  border: 1px solid var(--bd);
  border-radius: 999px;
  background: #f6f8fb;
  outline: none;
  font-size: 11px;
  font-weight: 400;
  direction: rtl;                /* align placeholder to the right */
  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%, #0000);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, #0000);
  background: #fff;
}

/* Even vertical rhythm between fields and button */
.field + .field{ margin-top: 18px; }  /* gap before password label */
.actions{ margin-top: 18px; }         /* same gap before the button */

/* 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;
  font-size: 15px;
  border-radius: 999px;
}
.btn.primary{
  background-image: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 22px rgba(239,71,111,.20);
}
.btn.primary:hover{ transform: translateY(-1px); }
.btn.primary:active{ transform: translateY(0); opacity: .95; }

/* Demo credentials (inside the card) */
.demo-credentials{
  margin-top: 10px;
  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; /* monospace on purpose */
  font-size: 12px;
  direction: ltr;
  unicode-bidi: plaintext;
}

/* Brand column + smaller logo */
.auth-brand-col{
  display: grid;
  place-items: center;
  padding: 6px;
  background: transparent;
  border-radius: 10px;
}
.brand-img{
  width: min(360px, 86%);
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.06));
}

/* ========== Demo trigger button ========== */
.demo-trigger-wrap{ margin-top: 12px; text-align: center; }
.demo-trigger{
  background: transparent;
  border: 1px solid var(--bd);
  color: var(--muted);
  padding: 6px 10px;
  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(420px, 92vw);
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  padding: 16px 18px 18px;
  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 8px; 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; /* monospace on purpose */
  font-size: 12.5px; direction: ltr; unicode-bidi: plaintext;
}
