:root {
  --primary: #0e7490;
  --primary-dark: #155e75;
  --primary-soft: #22d3ee;
  --sidebar-from: #0c2340;
  --sidebar-to: #134e6f;
  --white: #fff;
  --border: #e5e9f0;
  --muted: #6b7280;
  --text: #111827;
  --danger: #ef4444;
  font-family: Inter, system-ui, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
}

.login-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  overflow: hidden;
}

.info-panel {
  flex: 1 1 50%;
  padding: 48px 56px;
  background: linear-gradient(160deg, var(--sidebar-from) 0%, var(--sidebar-to) 55%, var(--primary) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.info-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.08) 0%, transparent 40%);
  pointer-events: none;
}

.info-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border: 2px solid rgba(255,255,255,.25);
  font-size: 32px;
}

.info-panel h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

.info-panel .tagline {
  font-size: 15px;
  opacity: .9;
  line-height: 1.6;
  margin-bottom: 32px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.feature-text strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.feature-text span {
  opacity: .85;
  font-size: 13px;
}

.login-panel {
  flex: 1 1 50%;
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
}

.login-form-wrap {
  width: 100%;
  max-width: 380px;
}

.login-panel h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.login-panel .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.form-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

.form-control {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, .15);
}

.input-wrap { position: relative; }
.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
}
.input-wrap .form-control { padding-left: 38px; }
.input-wrap .eye-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}

.btn-login,
.btn-auth {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 8px 20px rgba(14, 116, 144, .28);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-login:hover,
.btn-auth:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-login:active,
.btn-auth:active { transform: scale(.99); }

.error-msg,
.error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
}

.secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}

.secure-note i { color: var(--primary); }

/* Centered auth cards (forgot / reset / otp) */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(14,116,144,.18), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(12,35,64,.2), transparent 45%),
    linear-gradient(160deg, #ecfeff 0%, #f1f5f9 45%, #e2e8f0 100%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(12, 35, 64, .12);
  padding: 40px 36px;
}

.auth-brand { text-align: center; margin-bottom: 28px; }

.auth-brand-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(145deg, var(--sidebar-from), var(--primary));
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(14, 116, 144, .3);
}

.auth-brand h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.auth-brand p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.otp-box {
  background: #f8fafc;
  border: 2px dashed rgba(14, 116, 144, .35);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  margin-bottom: 20px;
}

.otp-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.otp-code {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .28em;
  user-select: all;
  line-height: 1;
}

.otp-valid {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.notice {
  background: rgba(217, 119, 6, .08);
  border: 1px solid rgba(217, 119, 6, .25);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #d97706;
  margin-bottom: 20px;
}

.field-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-group { margin-bottom: 16px; }
.otp-input { text-align: center; font-size: 24px; letter-spacing: .25em; font-weight: 700; }

@media (max-width: 768px) {
  html, body { overflow: auto; height: auto; }

  .login-shell {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .info-panel { padding: 36px 28px; }
  .info-panel h1 { font-size: 22px; }
  .login-panel { padding: 36px 28px; }
  .auth-card { padding: 32px 24px; }
}
