/* Sign in, sign up and password reset: brand panel beside the form; just the form on phones. */
html, body { min-height: 100%; }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }

.auth-brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  gap: 32px; padding: 40px 48px; color: #f3efe4;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(213, 176, 104, 0.18), transparent 60%),
    linear-gradient(160deg, #0c5741 0%, #073428 100%);
}
.auth-brand .logo { height: 34px; width: auto; display: block; }
.auth-brand h2 { font-family: var(--serif); font-weight: 600; font-size: 38px; line-height: 1.1; letter-spacing: -0.015em; max-width: 13ch; text-wrap: balance; }
.auth-brand .ar { font-family: var(--arabic); color: #d5b068; font-size: 26px; margin-bottom: 10px; }
.auth-brand p { color: rgba(243, 239, 228, 0.78); max-width: 40ch; margin-top: 14px; }
.auth-brand .shot { border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); width: 100%; max-width: 520px; height: auto; display: block; }
.auth-brand .uses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.auth-brand .uses span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #f3efe4; }

.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 20px; gap: 24px; }
.auth-top { width: 100%; max-width: 420px; display: flex; justify-content: space-between; align-items: center; }
.auth-top .brand { visibility: hidden; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 32px; }
.auth-card .lead { color: var(--muted); margin-top: 6px; }
.auth-card form { margin-top: 22px; display: grid; gap: 14px; }
.auth-card .field + .field { margin-top: 0; }
.auth-card .switch-link { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-card .switch-link a { font-weight: 600; }

.alert { border-radius: 10px; padding: 11px 14px; font-size: 14px; line-height: 1.45; }
.alert.error { background: var(--danger-soft); color: var(--danger); }
.alert.ok { background: var(--accent-soft); color: var(--accent); }
.alert.info { background: var(--gold-soft); color: var(--ink); }

.pw { position: relative; }
.pw input { padding-right: 64px; }
.pw button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 8px; border-radius: 6px; cursor: pointer;
}
.pw button:hover { color: var(--ink); background: var(--surface); }

.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-size: 13px; font-weight: 600; }

.code-status { font-size: 13px; margin-top: 6px; min-height: 18px; color: var(--muted); }
.code-status.ok { color: var(--accent); }
.code-status.bad { color: var(--danger); }
#code { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
#code::placeholder { text-transform: none; letter-spacing: normal; font-weight: 400; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-top .brand { visibility: visible; }
}
