/* =======================================
   DESIGN TOKENS
======================================= */
:root {
  --ink-navy: #16213E;
  --slate-blue: #3A506B;
  --mint-accent: #5BC0BE;
  --bg-soft: #F7F9FC;
  --white: #FFFFFF;
  --text-muted: #6B7280;
  --border-soft: #E3E7EF;
  --danger: #D64545;
  --danger-bg: #FDECEC;
  --success: #2F9E6E;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 8px 30px rgba(22, 33, 62, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink-navy);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
}

/* =======================================
   LAYOUT — split screen
======================================= */
.auth-screen {
  display: flex;
  min-height: 100vh;
}

/* ---------- LEFT BRAND PANEL ---------- */
.brand-panel {
  flex: 1 1 44%;
  background: linear-gradient(160deg, var(--ink-navy) 0%, var(--slate-blue) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.brand-panel-inner {
  max-width: 440px;
  width: 100%;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  margin-bottom: 56px;
  opacity: 0.9;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint-accent);
  box-shadow: 0 0 0 4px rgba(91, 192, 190, 0.25);
}

.brand-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.brand-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(247, 249, 252, 0.72);
  max-width: 380px;
  margin-bottom: 56px;
}

.clock-signature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.clock-caption {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.2px;
}

.clock-caption span {
  font-weight: 400;
  color: rgba(247, 249, 252, 0.6);
}

.clock-hand-hour {
  transform-origin: 100px 100px;
  animation: hourTick 8s ease-in-out infinite;
}
.clock-hand-min {
  transform-origin: 100px 100px;
  animation: minTick 4s linear infinite;
}
.clock-progress {
  animation: progressPulse 3s ease-in-out infinite;
}

@keyframes hourTick {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}
@keyframes minTick {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes progressPulse {
  0%, 100% { stroke-dashoffset: 145; }
  50% { stroke-dashoffset: 120; }
}

@media (prefers-reduced-motion: reduce) {
  .clock-hand-hour, .clock-hand-min, .clock-progress { animation: none; }
}

/* ---------- RIGHT FORM PANEL ---------- */
.form-panel {
  flex: 1 1 56%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg-soft);
}

.form-panel-inner {
  width: 100%;
  max-width: 380px;
}

.form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-blue);
  margin-bottom: 6px;
  margin-top: 18px;
}

.field-label:first-of-type { margin-top: 0; }

.field-input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-navy);
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-input:focus {
  border-color: var(--mint-accent);
  box-shadow: 0 0 0 3px rgba(91, 192, 190, 0.18);
}

.field-input::placeholder { color: #A6ADBB; }

.error-message {
  display: none;
  margin-top: 16px;
  padding: 11px 14px;
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
}

.error-message.visible { display: block; }

.submit-btn {
  width: 100%;
  margin-top: 26px;
  padding: 13px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  background: var(--ink-navy);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.submit-btn:hover { background: var(--slate-blue); }
.submit-btn:active { transform: scale(0.99); }
.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.admin-link {
  text-align: center;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.admin-link a {
  color: var(--slate-blue);
  font-weight: 600;
  text-decoration: none;
}

.admin-link a:hover { text-decoration: underline; }

/* =======================================
   RESPONSIVE
======================================= */
@media (max-width: 860px) {
  .auth-screen { flex-direction: column; }
  .brand-panel { flex: none; padding: 40px 28px; }
  .brand-headline { font-size: 32px; }
  .clock-signature { display: none; }
  .form-panel { flex: none; padding: 40px 24px; }
}
