/* ##### Modified on 04 June 2026 ######## */
/* Standalone login page styles — separate file due to conflicting :root vars with app.css */
:root {
  --primary: #18b1b5;
  --primary-dark: #0e7c80;
  --gold: #f2c05b;
  --navy: #040a18;
  --navy-2: #0d1730;
  --ink: #081633;
  --slate: #64748b;
  --muted: #b8c4d9;
  --line: #d8e2ec;
  --paper: #f8fafc;
  --white: #ffffff;
  --danger: #dc2626;
  --success: #16a34a;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh; color: var(--ink); background: var(--paper); overflow: hidden;
}

.login-shell {
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-columns: minmax(0, 1fr) 520px;
  background: var(--paper);
}

.brand-panel {
  position: relative; display: flex; align-items: center;
  overflow: hidden; min-height: 100vh; min-height: 100dvh;
  padding: clamp(34px, 4.4vw, 70px);
  background:
    radial-gradient(circle at 12% 10%, rgba(24, 177, 181, 0.30), transparent 32%),
    radial-gradient(circle at 88% 82%, rgba(242, 192, 91, 0.18), transparent 30%),
    radial-gradient(circle at 70% 20%, rgba(23, 58, 104, 0.70), transparent 36%),
    linear-gradient(135deg, #030814 0%, #0d1730 58%, #0d5659 125%);
  isolation: isolate;
}

.brand-panel::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.085) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .9; z-index: -2;
}

.brand-panel::after {
  content: ""; position: absolute; inset: 24px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 28px;
  pointer-events: none; z-index: -1;
}

.hero { width: min(680px, 100%); position: relative; z-index: 1; }

.brand-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 13px; margin-bottom: 30px;
  color: rgba(255,255,255,.86); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10); border-radius: 999px;
  backdrop-filter: blur(14px); font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.brand-kicker span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(242,192,91,.12); }

.hero h1 {
  max-width: 720px; color: var(--white);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(52px, 6.2vw, 88px); line-height: .98;
  font-weight: 700; letter-spacing: -.035em; margin-bottom: 28px;
}
.hero h1 em { color: var(--gold); font-style: italic; font-weight: 600; }

.hero-copy {
  max-width: 600px; color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px); line-height: 1.75; margin-bottom: 44px;
}

.feature-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; max-width: 650px;
}

.feature-card {
  min-height: 132px; padding: 22px; border-radius: 16px;
  background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(16px); box-shadow: 0 16px 40px rgba(0,0,0,.10);
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.feature-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.105); border-color: rgba(255,255,255,.16); }

.feature-icon {
  width: 34px; height: 34px; display: grid; place-items: center;
  margin-bottom: 16px; color: var(--gold);
  background: rgba(242,192,91,.12); border: 1px solid rgba(242,192,91,.20); border-radius: 10px;
}
.feature-title { color: var(--white); font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.feature-desc  { color: #b7c6dd; font-size: 13px; line-height: 1.55; }

.signin-panel {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100dvh; padding: 42px 48px;
  background: radial-gradient(circle at 85% 10%, rgba(24,177,181,.10), transparent 28%),
              linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.signin-card { width: 100%; max-width: 390px; padding: 8px 0; }

.login-logo {
  display: block; width: min(235px, 72%); height: auto;
  margin: 0 auto 34px; filter: drop-shadow(0 12px 22px rgba(15, 23, 42, .08));
}

.panel-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; margin-bottom: 18px;
  color: var(--primary-dark); background: rgba(24,177,181,.10);
  border: 1px solid rgba(24,177,181,.16); border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
.panel-chip span { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

.signin-card h2 {
  color: var(--ink); font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(40px, 4vw, 54px); line-height: 1.02;
  font-weight: 700; letter-spacing: -.035em; margin-bottom: 12px;
}

.subtitle { color: var(--slate); font-size: 15px; line-height: 1.65; margin-bottom: 30px; }

.flash {
  padding: 12px 14px; border-radius: 12px; font-size: 13px;
  line-height: 1.45; margin-bottom: 18px; border: 1px solid transparent;
}
.flash-error   { background: rgba(220,38,38,.08); color: #991b1b; border-color: rgba(220,38,38,.18); }
.flash-success { background: rgba(22,163,74,.08);  color: #166534; border-color: rgba(22,163,74,.18); }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; color: #334155; font-size: 12px;
  font-weight: 700; letter-spacing: .055em; text-transform: uppercase;
}

.field-wrap { position: relative; }
.field-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; pointer-events: none;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
  width: 100%; height: 52px; padding: 0 48px;
  border: 1px solid var(--line); border-radius: 14px;
  font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ink);
  background: var(--white); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  -webkit-appearance: none;
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(24,177,181,.14); background: #fff; }
.form-group input::placeholder { color: #94a3b8; }
.pw-field { padding-right: 52px !important; }

.pw-toggle {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  background: transparent; border: none; border-radius: 10px;
  cursor: pointer; color: #94a3b8; transition: color .15s ease, background .15s ease;
}
.pw-toggle:hover { color: #334155; background: #f1f5f9; }

.options {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin: 22px 0 28px;
}
.remember { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--slate); cursor: pointer; user-select: none; }
.remember input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

.options a, .form-foot a {
  color: var(--primary-dark); text-decoration: none;
  font-size: 14px; font-weight: 600; transition: color .15s ease, opacity .15s ease;
}
.options a:hover, .form-foot a:hover { color: var(--primary); }

.btn {
  width: 100%; height: 54px; border: none; border-radius: 14px;
  color: var(--white); font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 700;
  cursor: pointer; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 16px 34px rgba(14,124,128,.24);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; letter-spacing: .01em;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(14,124,128,.30); filter: saturate(1.05); }
.btn:active { transform: translateY(0); }

.form-foot { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; color: #cbd5e1; }
.form-foot a { color: #64748b; font-size: 13px; }

.security-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid #e6edf4;
  color: #64748b; font-size: 13px;
}
.security-note svg { color: var(--primary-dark); }

@media (max-height: 820px) and (min-width: 901px) {
  .brand-panel { align-items: flex-start; padding: 24px 56px; }
  .brand-panel::after { inset: 20px; }
  .hero { padding-top: 48px; }
  .brand-kicker { padding: 7px 12px; margin-bottom: 20px; font-size: 12px; }
  .hero h1 { max-width: 650px; font-size: clamp(44px, 4.85vw, 64px); line-height: .98; margin-bottom: 16px; }
  .hero-copy { max-width: 650px; font-size: 15.5px; line-height: 1.45; margin-bottom: 22px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 650px; }
  .feature-card { min-height: 88px; padding: 15px 18px; }
  .feature-icon { width: 28px; height: 28px; margin-bottom: 10px; }
  .feature-title { font-size: 15.5px; margin-bottom: 5px; }
  .feature-desc { font-size: 12.2px; line-height: 1.4; }
  .signin-panel { align-items: flex-start; padding: 58px 48px 24px; }
  .signin-card { padding: 0; max-width: 390px; }
  .login-logo { width: min(150px, 52%); margin-bottom: 36px; }
  .panel-chip { padding: 6px 10px; margin-bottom: 12px; font-size: 11px; }
  .signin-card h2 { font-size: 40px; margin-bottom: 8px; }
  .subtitle { font-size: 14.5px; line-height: 1.42; margin-bottom: 18px; }
  .form-group { margin-bottom: 13px; }
  .form-group label { margin-bottom: 7px; font-size: 11.5px; }
  .form-group input[type="email"],
  .form-group input[type="password"],
  .form-group input[type="text"] { height: 46px; }
  .options { margin: 14px 0 18px; }
  .btn { height: 48px; }
  .security-note { display: none; }
  .form-foot { margin-top: 16px; }
}

@media (max-height: 700px) and (min-width: 901px) {
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(42px, 4.6vw, 60px); }
  .hero-copy { margin-bottom: 20px; }
  .feature-card { min-height: 82px; padding: 14px 16px; }
  .feature-desc { display: none; }
  .signin-panel { padding-top: 34px; }
  .login-logo { margin-bottom: 28px; }
}

@media (max-width: 1120px) {
  .login-shell { grid-template-columns: 1fr 480px; }
  .brand-panel { padding: 52px 44px; }
  .hero h1 { font-size: 60px; }
  .feature-grid { grid-template-columns: 1fr; max-width: 520px; }
}

@media (max-width: 900px) {
  body { overflow: auto; }
  .login-shell { grid-template-columns: 1fr; min-height: 100vh; }
  .brand-panel { display: none; }
  .signin-panel { min-height: 100vh; padding: 34px 22px; }
  .signin-card { max-width: 430px; padding: 28px 0; }
  .login-logo { width: 210px; margin-bottom: 28px; }
}

@media (max-width: 420px) {
  .signin-panel { padding: 26px 18px; }
  .signin-card h2 { font-size: 38px; }
  .options { align-items: flex-start; flex-direction: column; gap: 12px; }
  .form-group input[type="email"],
  .form-group input[type="password"],
  .form-group input[type="text"] { height: 50px; padding-left: 44px; }
}
