.login-page {
  min-height: 100vh;
  display: flex;
  background: #f8fafc;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.flex-shrink-0 { flex-shrink: 0; }
.mt-0\.5 { margin-top: 0.125rem; }

.login-brand {
  position: relative;
  display: none;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  overflow: hidden;
  background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 45%, #1d4ed8 100%);
  color: #fff;
}

@media (min-width: 1024px) {
  .login-brand { display: flex; }
}

.login-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  pointer-events: none;
}

.login-brand > * { position: relative; z-index: 1; }

.login-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.login-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.login-brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-brand-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.125rem;
}

.login-brand-content h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 22rem;
}

.login-brand-content p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 24rem;
}

.login-features {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
}

.login-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.login-brand-footer {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.35);
}

.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .login-form-panel {
    flex: 0 0 480px;
    max-width: 480px;
    border-left: 1px solid #e2e8f0;
    background: #fff;
  }
}

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

.login-mobile-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .login-mobile-header { display: none; }
}

.login-mobile-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

.login-mobile-subtitle {
  font-size: 11px;
  color: #64748b;
}

.login-mobile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #3b82f6;
  color: #fff;
}

.login-form-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.login-form-header p {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: #64748b;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: 1.5rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.login-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.login-alert-info {
  margin-top: 1.25rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

.login-field {
  margin-top: 1.25rem;
}

.login-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
}

.login-input-wrap {
  position: relative;
}

.login-input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.login-input {
  width: 100%;
  padding: 0.6875rem 0.875rem 0.6875rem 2.5rem;
  font-size: 0.875rem;
  color: #0f172a;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.login-input.has-toggle {
  padding-right: 2.75rem;
}

.login-toggle-pass {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.login-toggle-pass:hover {
  color: #64748b;
  background: #f1f5f9;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #3b82f6;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(59, 130, 246, 0.25);
}

.login-submit:hover:not(:disabled) {
  background: #2563eb;
}

.login-submit:active:not(:disabled) {
  transform: scale(0.99);
}

.login-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.login-form-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  font-size: 0.6875rem;
  color: #94a3b8;
}

.login-alert-info strong {
  font-weight: 600;
}

.login-form-footer code {
  padding: 0.125rem 0.375rem;
  font-size: 0.625rem;
  background: #f1f5f9;
  border-radius: 0.25rem;
  color: #64748b;
}
