.login-page {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  background: #0b2f6a;
  color: var(--text);
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0b2f6a 0%, #0d4c8a 55%, #1ea8e0 100%);
  opacity: 0.9;
  z-index: 0;
}

.login-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.2), transparent 55%);
  z-index: 0;
}
.login-container {
  width: 100%;
  max-width: 1120px;
  display: flex;
  background: var(--panel);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(4, 18, 44, 0.4);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.login-info {
  width: 42%;
  min-width: 280px;
  position: relative;
  background: linear-gradient(160deg, #0b2447 0%, #0d3a6e 60%, #0057a3 100%);
  color: #ffffff;
  padding: 52px 46px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.login-info::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(30, 168, 224, 0.28), transparent 55%);
  pointer-events: none;
}
.login-info > * { position: relative; z-index: 1; }
.login-info .badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #ffffff;
  text-transform: uppercase;
}
.login-info h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.login-info .lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}
.info-note {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}
.login-form-wrapper {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 52px 48px;
}
.login-card {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.form-header .header-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--primary);
}
.form-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.form-header p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}
.input-wrapper {
  position: relative;
}
.input-field {
  width: 100%;
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-field:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: var(--focus-ring);
}
.form-help {
  font-size: 12px;
  color: var(--muted);
}
.form-note {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--sidebar);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-note p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.form-note label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.alert {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.alert svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: block;
}
.alert--error {
  border-color: rgba(192, 74, 74, 0.35);
  background: var(--danger-soft);
  color: #8c3535;
}
.alert--success {
  border-color: rgba(14, 138, 95, 0.3);
  background: var(--success-soft);
  color: var(--success);
}
.debug-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  background: #eaf4fb;
  padding: 16px;
  font-size: 12px;
  color: #0b2447;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.debug-card a {
  color: var(--primary);
  font-weight: 600;
  word-break: break-word;
}
.debug-card a:hover {
  text-decoration: underline;
}
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 44, 84, 0.2), 0 8px 20px rgba(0, 87, 163, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background: var(--primary-2);
  border-color: var(--primary-2);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  cursor: default;
  opacity: 0.6;
  transform: none;
}
.btn-primary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.form-hint {
  font-size: 12px;
  color: var(--muted);
}
.support-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--sidebar);
  padding: 20px 18px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.support-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 16px;
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.support-link:hover {
  border-color: var(--primary);
  color: var(--primary-2);
  box-shadow: var(--shadow-xs);
}
.support-link svg {
  width: 16px;
  height: 16px;
  display: block;
}
.powered-by {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.powered-by img {
  height: 48px;
  width: auto;
  display: block;
}
.text-slate-300 {
  color: #b0b5bb;
}
.text-emerald-500 {
  color: #1ea8e0;
}
.text-red-500 {
  color: #b15d5d;
}
.text-rda-blue {
  color: var(--primary);
}
@media (max-width: 1040px) {
  .login-container {
    flex-direction: column;
  }
  .login-info {
    width: 100%;
    padding: 40px 32px;
  }
  .login-form-wrapper {
    padding: 40px 32px;
  }
}
@media (max-width: 640px) {
  .login-container {
    flex-direction: column-reverse;
    border-radius: var(--radius-lg);
  }
  .login-page {
    padding: 24px 14px;
  }
  .login-info {
    padding: 32px 24px;
  }
  .login-form-wrapper {
    padding: 32px 24px;
  }
  .login-card {
    max-width: none;
  }
}
.method-switch {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 8px auto 0;
  padding: 4px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--sidebar);
  width: fit-content;
}
.method-tab {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.method-tab:hover { color: var(--text); }
.method-tab.active {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 87, 163, 0.3);
}
