:root {
  --ml-login-green:var(--theme-primary);
  --ml-login-green-dark:var(--theme-primary-dark);
  --ml-login-ink:var(--theme-text);
  --ml-login-muted:var(--theme-muted);
  --ml-login-border:var(--theme-border);
  --ml-login-canvas:var(--theme-background);
  --ml-login-surface:var(--theme-surface);
  --ml-login-gold:var(--theme-accent);
  --ml-login-gold-soft:color-mix(in srgb,var(--theme-accent) 20%,var(--theme-surface));
}

body .auth-container {
  background:
    radial-gradient(circle at 82% 12%,color-mix(in srgb,var(--theme-accent) 18%,transparent),transparent 28%),
    linear-gradient(145deg,var(--theme-background) 0%,var(--theme-surface) 52%,var(--theme-background) 100%) !important;
}

body .auth-background,
body .auth-overlay {
  background:transparent !important;
}

body .auth-card {
  overflow:hidden;
  border:1px solid var(--ml-login-border) !important;
  border-radius:22px !important;
  background:var(--theme-surface) !important;
  box-shadow:0 22px 54px rgba(91,70,37,.13) !important;
}

body .auth-card-header {
  color:var(--ml-login-ink) !important;
  border-bottom:1px solid var(--ml-login-border) !important;
  background:linear-gradient(180deg,var(--theme-surface) 0%,var(--theme-background) 100%) !important;
}

body .auth-title,
body .auth-card-header h1,
body .auth-card-header h2 {
  color:var(--ml-login-ink) !important;
}

body .auth-subtitle,
body .auth-card .text-muted {
  color:var(--ml-login-muted) !important;
}

body .auth-logo {
  filter:none !important;
}

body .auth-input,
body .auth-card .form-control {
  color:var(--ml-login-ink) !important;
  border-color:var(--ml-login-border) !important;
  background:var(--ml-login-surface) !important;
}

body .auth-input:focus,
body .auth-card .form-control:focus {
  border-color:var(--ml-login-gold) !important;
  box-shadow:0 0 0 .2rem rgba(199,164,90,.14) !important;
}

body .auth-card .input-group-text,
body .auth-card .form-floating > label,
body .password-toggle {
  color:var(--ml-login-muted) !important;
}

body .auth-btn-primary,
body .auth-card .btn-primary {
  color:var(--theme-button-text) !important;
  border-color:var(--ml-login-green) !important;
  background:var(--ml-login-green) !important;
  box-shadow:0 8px 18px rgba(12,107,77,.16) !important;
}

body .auth-btn-primary:hover,
body .auth-card .btn-primary:hover {
  border-color:var(--ml-login-green-dark) !important;
  background:var(--ml-login-green-dark) !important;
}

body .auth-card a,
body .forgot-password {
  color:var(--ml-login-green-dark) !important;
}

body .auth-card a:hover,
body .forgot-password:hover {
  color:var(--ml-login-green) !important;
}

body .auth-card .form-check-input:checked {
  border-color:var(--ml-login-green) !important;
  background-color:var(--ml-login-green) !important;
}

body .modal-content {
  border:1px solid var(--ml-login-border);
  background:var(--ml-login-surface);
}
