﻿:root {
    /* Light theme base */
    --brand-bg: #f5f7fb; /* light background */
    --brand-surface: #ffffff; /* card surface */
    --brand-surface-2: #f1f5f9; /* subtle surface */
    --brand-text: #0f172a; /* slate-900 */
    --brand-text-muted: #475569; /* slate-600 */
    --brand-danger: #dc2626;
    --radius: 14px;
    --shadow-1: 0 10px 30px rgba(2, 6, 23, .08);
    --input-bg: #ffffff;
    --input-border: #d1d5db;
    /* App layout variables (for site.css) */
    --app-bg: #f4f5f7; /* page background */
    --sidebar-bg: #0b6ea8; /* sidebar background */
    --sidebar-link: #cfe6f5; /* sidebar link color */
    --sidebar-link-active-border: #cfe6f5; /* sidebar active/hover border */
    --warning: #f0ad4e; /* warning badge background */
    /* Login button brand colors (from requirement) */
    --login-green: #ACCE39; /* primary start */
    --login-blue: #1973B2; /* primary end */

    --default-secondary: #ACCE39; /* primary start */
    --default-primary: #1973B2; /* primary end */
}

/* Apply light background only for login page (body has class login-light in _LoginLayout) */
body.login-light {
  background: var(--brand-bg);
  color: var(--brand-text);
}

.login-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 92vw);
  background: var(--brand-surface);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 28px;
}

.login-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.logo-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(90deg, var(--login-green), var(--login-blue));
  box-shadow: 0 0 12px rgba(25,115,178,.35);
}

h1.login-title {
  font-size: 1.25rem;
  margin: 0;
  color: var(--brand-text);
}

.form-control-modern {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--brand-text);
}
.form-control-modern::placeholder { color: #94a3b8; }
.form-control-modern:focus {
  border-color: var(--login-blue);
  box-shadow: 0 0 0 .2rem rgba(25,115,178,.15);
}

/* Button uses only the required colors from CSS root */
.btn-modern {
  background: linear-gradient(90deg, var(--login-green), var(--login-blue));
  border: none;
  color: #ffffff;
  font-weight: 600;
}
.btn-modern:hover {
  filter: brightness(1.02);
}

.helper-text { color: var(--brand-text-muted); font-size: .9rem; }

.validation-summary-errors li { color: var(--brand-danger); }
