/* =============================================================================
   DataStream VPN — shared auth design system (ds-auth.css)
   -----------------------------------------------------------------------------
   One look for EVERY login / 2FA screen in the panel: customer portal login
   (login.html / login_2fa.html) and operator login (admin/login.html /
   admin/login_2fa.html). Dark navy gradient backdrop matching the console rail,
   centered white card, brand mark, Inter type. Brand tokens identical to
   ds-theme.css and user.css.
   ============================================================================= */

:root {
  --brand: #1679EB; --brand-deep: #0E5CBE; --brand-dark: #0A3D7D; --navy: #044478;
  --ink: #111827; --ink-2: #1F2937; --muted: #6B7280;
  --line: #E5E7EB; --card: #ffffff;
  --ok: #00a63e; --danger: #e7000b;
  --r-card: 16px; --r-btn: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-md: 0 20px 50px rgba(2,20,45,.35), 0 4px 14px rgba(2,20,45,.25);
  --focus: 0 0 0 3px rgba(22,121,235,.20);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }

body.auth-body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(22,121,235,.35), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(0,166,62,.18), transparent 55%),
    linear-gradient(160deg, var(--brand-dark) 0%, var(--navy) 55%, #03305a 100%);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-wrap { width: 100%; max-width: 400px; }

.auth-card {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
  padding: 32px 30px 28px;
}

.auth-head { text-align: center; margin-bottom: 24px; }
.auth-logo {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.5px;
  box-shadow: 0 6px 16px rgba(22,121,235,.35); overflow: hidden;
}
.auth-logo img { width: 36px; height: 36px; object-fit: contain; display: block; }
.auth-brand { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.auth-sub { color: var(--muted); font-size: 13.5px; margin-top: 5px; }

.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block; font-weight: 600; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px;
}
.auth-field input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-btn);
  font: 500 14px var(--font); color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.auth-field input::placeholder { color: var(--muted); }
.auth-field input:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }

.auth-btn {
  width: 100%; border: 0; border-radius: var(--r-btn); padding: 12px 16px;
  background: var(--brand); color: #fff; font: 600 14px var(--font); cursor: pointer;
  transition: background .15s;
}
.auth-btn:hover { background: var(--brand-deep); }
.auth-btn:focus { outline: none; box-shadow: var(--focus); }

.auth-error {
  color: #9f0712; background: #FDECEC; border: 1px solid #F5C6C6; padding: 10px 12px;
  border-radius: var(--r-btn); margin-bottom: 14px; font-size: 13px;
}

.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0 16px;
  color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .6px;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-btn-alt {
  display: block; width: 100%; text-align: center; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--r-btn); padding: 11px 16px;
  background: #fff; color: var(--ink-2); font: 600 14px var(--font);
  transition: border-color .15s, background .15s;
}
.auth-btn-alt:hover { border-color: var(--brand); background: #F5F9FF; }
.auth-btn-alt + .auth-btn-alt { margin-top: 10px; }

.auth-foot {
  margin-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,.72);
}
.auth-foot a { color: #fff; font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
.auth-foot .sep { margin: 0 8px; opacity: .5; }
