:root {
  --etp-blue: #0077c8;
  --etp-blue-dark: #005a9e;
  --etp-navy: #003d7a;
  --etp-bg: #f0f6fc;
}

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

body.login-page {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  background: var(--etp-bg);
}

.login-split {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.login-hero {
  flex: 1;
  background: linear-gradient(145deg, #003d7a 0%, #0077c8 55%, #0091ea 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.login-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
}

.login-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 420px;
}

.login-hero img {
  width: min(280px, 85vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.25));
  margin-bottom: 28px;
}

.login-hero h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.login-hero p {
  font-size: 14px;
  opacity: 0.92;
  line-height: 1.6;
  font-weight: 400;
}

.login-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.login-hero .badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
}

.login-panel {
  width: min(480px, 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: #fff;
  box-shadow: -8px 0 40px rgba(0, 61, 122, 0.06);
}

.login-card {
  width: 100%;
  max-width: 360px;
}

.login-card .mobile-logo {
  display: none;
  text-align: center;
  margin-bottom: 24px;
}

.login-card .mobile-logo img {
  width: 120px;
  height: auto;
}

.login-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--etp-navy);
  margin-bottom: 6px;
}

.login-card .subtitle {
  font-size: 14px;
  color: #5c7a99;
  margin-bottom: 28px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--etp-navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d8e6f2;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fafcfe;
}

.field input:focus {
  outline: none;
  border-color: var(--etp-blue);
  box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.15);
  background: #fff;
}

.login-card button[type='submit'] {
  width: 100%;
  margin-top: 8px;
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--etp-blue), var(--etp-navy));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 119, 200, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.login-card button[type='submit']:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 119, 200, 0.4);
}

.login-card button[type='submit']:disabled {
  opacity: 0.7;
  cursor: wait;
}

.login-error {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.45;
}

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

.login-hint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e8eef3;
  font-size: 12px;
  color: #8aa0b8;
  text-align: center;
}

.login-hint strong { color: var(--etp-blue); font-weight: 600; }

.login-back {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.login-back a {
  color: var(--etp-muted, #5c7a99);
  text-decoration: none;
}

.login-back a:hover { color: var(--etp-blue); text-decoration: underline; }

@media (max-width: 900px) {
  .login-split { flex-direction: column; }
  .login-hero { padding: 36px 24px; min-height: auto; }
  .login-hero img { width: 160px; margin-bottom: 16px; }
  .login-hero h1 { font-size: 20px; }
  .login-hero p { font-size: 13px; }
  .login-hero .badge { display: none; }
  .login-panel { width: 100%; box-shadow: none; padding: 28px 20px; }
  .login-card .mobile-logo { display: block; }
}

@media (max-width: 480px) {
  .login-panel { padding: 24px 16px; }
  .login-card h2 { font-size: 20px; }
  .field input { padding: 12px 14px; font-size: 16px; }
}
