/* Dynamic Dialogue — Admin login page */
:root {
  --navy-950: #050f26; --navy-900: #071a3d; --navy-800: #0b2559; --navy-700: #0f3380; --navy-600: #1846a3;
  --gold-600: #b8881f; --gold-500: #d4a537; --gold-400: #e6bd57; --gold-300: #f2d68b; --gold-100: #fbf2da;
  --ink: #16203a; --muted: #6b7489; --line: #e3e7ef; --crimson: #a8192e;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); min-height: 100vh; overflow-x: hidden; position: relative;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(43, 143, 214, .28), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(123, 63, 160, .26), transparent 60%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
body::before { content: ''; position: fixed; inset: 0; opacity: .07; pointer-events: none; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px; }
a { text-decoration: none; }

.bg-ribbon { position: fixed; left: -20%; right: -20%; height: 54px; pointer-events: none; z-index: 0; box-shadow: 0 12px 34px rgba(0,0,0,.35);
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300) 40%, var(--gold-500) 70%, var(--gold-600)); }
.bg-ribbon.one { top: 84%; transform: rotate(-7deg); }
.bg-ribbon.two { top: 93%; height: 14px; transform: rotate(-7deg); opacity: .5; }

.login-shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 18px; }
.login-box {
  width: 100%; max-width: 1020px; display: grid; grid-template-columns: 1.05fr .95fr; border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.45), 0 0 0 1px rgba(242,214,139,.25); animation: rise .7s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- Brand panel ---------- */
.brand-panel {
  position: relative; overflow: hidden; padding: 46px 46px 40px; color: rgba(255,255,255,.82); display: flex; flex-direction: column;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(212,165,55,.22), transparent 70%),
    linear-gradient(160deg, #0e2a66 0%, var(--navy-900) 70%);
  border-right: 1px solid rgba(242,214,139,.25);
}
.brand-panel::after {
  content: ''; position: absolute; right: -90px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%;
  border: 38px solid rgba(212,165,55,.09);
}
.brand-top { position: relative; z-index: 1; }
.logo-ring {
  width: 116px; height: 116px; border-radius: 50%; padding: 5px; background: linear-gradient(145deg, var(--gold-300), var(--gold-600));
  box-shadow: 0 16px 36px rgba(0,0,0,.4);
}
.logo-ring img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; background: #fff; display: block; }
.brand-panel h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 800; color: #fff; font-size: 2.5rem; line-height: 1.08; margin: 22px 0 8px; letter-spacing: -.01em; }
.brand-panel h1 span { background: linear-gradient(90deg, var(--gold-300), var(--gold-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 1.08rem; color: #d6deef; margin: 0; }
.sub { margin-top: 12px; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); }

.divider { display: flex; align-items: center; gap: 12px; margin: 30px 0 26px; color: var(--gold-400); position: relative; z-index: 1; }
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(242,214,139,.55), transparent); }

.features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features .ic { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--gold-300); background: rgba(212,165,55,.14); border: 1px solid rgba(242,214,139,.28); }
.features strong { display: block; color: #fff; font-size: .95rem; font-weight: 600; }
.features small { display: block; color: #a9b4cf; font-size: .82rem; margin-top: 2px; line-height: 1.45; }

.chips { margin-top: auto; padding-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--gold-300); border: 1px solid rgba(242,214,139,.35); background: rgba(255,255,255,.04); }

/* ---------- Form panel ---------- */
.form-panel { background: linear-gradient(180deg, #ffffff 0%, #fdfaf2 100%); padding: 56px 52px 44px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.form-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--gold-600), var(--gold-300), var(--gold-600)); }
.eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: var(--gold-100); color: var(--gold-600); border: 1px solid var(--gold-300); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.form-panel h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 2.2rem; color: var(--navy-800); margin: 16px 0 6px; line-height: 1.15; }
.lead { color: var(--muted); margin: 0 0 26px; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: .9rem; margin-bottom: 18px; }
.alert i { margin-top: 3px; }
.alert.err { background: #fbe9ec; color: var(--crimson); border: 1px solid #f2c4cc; }
.alert.ok { background: #e9f6ec; color: #1f6b33; border: 1px solid #bfe3c8; }

.field { display: block; margin-bottom: 18px; }
.lbl { display: block; font-size: .8rem; font-weight: 700; color: var(--ink); margin-bottom: 7px; letter-spacing: .02em; }
.control { position: relative; display: flex; align-items: center; }
.control > i { position: absolute; left: 16px; color: #9aa3b8; font-size: .95rem; transition: color .2s; pointer-events: none; }
.control input {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink); padding: 14px 48px 14px 46px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s;
}
.control input::placeholder { color: #a7afc2; }
.control input:focus { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(212,165,55,.16); }
.control:focus-within > i { color: var(--gold-600); }
.eye { position: absolute; right: 8px; width: 36px; height: 36px; border: 0; background: none; border-radius: 9px; color: #8a93a8; cursor: pointer; }
.eye:hover { background: var(--gold-100); color: var(--gold-600); }

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 24px; font-size: .88rem; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink); }
.check input { width: 17px; height: 17px; accent-color: var(--gold-600); cursor: pointer; }
.back { color: var(--navy-700); font-weight: 600; }
.back:hover { color: var(--gold-600); }

.submit {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 20px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 1rem; font-weight: 700; letter-spacing: .02em; color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); box-shadow: 0 12px 26px rgba(184,136,31,.38); transition: transform .2s, box-shadow .2s, filter .2s;
}
.submit:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(184,136,31,.48); filter: brightness(1.04); }
.submit:disabled { opacity: .8; cursor: wait; transform: none; }
.submit i { transition: transform .2s; }
.submit:hover i { transform: translateX(4px); }

.secure { margin-top: 22px; text-align: center; color: var(--muted); font-size: .8rem; }
.secure i { color: var(--gold-500); margin-right: 5px; }
.copy { margin-top: 26px; color: rgba(255,255,255,.7); text-shadow: 0 1px 3px rgba(0,0,0,.5); font-size: .82rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .login-box { grid-template-columns: 1fr; max-width: 480px; }
  .brand-panel { padding: 30px 28px 26px; border-right: 0; border-bottom: 1px solid rgba(242,214,139,.25); }
  .brand-top { display: grid; grid-template-columns: 76px 1fr; column-gap: 16px; align-items: center; }
  .logo-ring { width: 76px; height: 76px; padding: 4px; grid-row: span 3; }
  .brand-panel h1 { font-size: 1.6rem; margin: 0 0 4px; }
  .tagline { font-size: .88rem; }
  .sub { margin-top: 6px; font-size: .62rem; }
  .divider, .features, .chips { display: none; }
  .form-panel { padding: 34px 28px 30px; }
  .form-panel h2 { font-size: 1.8rem; }
}
@media (max-width: 400px) {
  .brand-top { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .logo-ring { grid-row: auto; margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .login-box { animation: none; } }
