/* ── Auth page styles ─────────────────────────────────────────── */

html, body.auth-body {
    height: 100%;
}

body.auth-body {
    background: linear-gradient(150deg, #eef3f8 0%, #e4ecf5 50%, #dce7f2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    position: relative;
}
body.auth-body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .55;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cg fill='none' stroke='%235B8DB8' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' opacity='.18'%3E%3C!-- House left --%3E%3Cpolygon points='38,115 88,62 138,115'/%3E%3Crect x='50' y='115' width='76' height='54'/%3E%3Crect x='74' y='133' width='20' height='36'/%3E%3Crect x='57' y='122' width='18' height='17'/%3E%3Crect x='99' y='122' width='18' height='17'/%3E%3C!-- Key top-right --%3E%3Ccircle cx='238' cy='72' r='22'/%3E%3Ccircle cx='238' cy='72' r='12'/%3E%3Cline x1='260' y1='72' x2='316' y2='72'/%3E%3Cline x1='304' y1='72' x2='304' y2='87'/%3E%3Cline x1='288' y1='72' x2='288' y2='87'/%3E%3C!-- Document center --%3E%3Crect x='212' y='148' width='64' height='82'/%3E%3Cpolyline points='252,148 252,166 276,166'/%3E%3Cpolyline points='252,148 276,148 276,166'/%3E%3Cline x1='222' y1='178' x2='258' y2='178'/%3E%3Cline x1='222' y1='191' x2='258' y2='191'/%3E%3Cline x1='222' y1='204' x2='244' y2='204'/%3E%3C!-- Percent sign left --%3E%3Ccircle cx='52' cy='218' r='10'/%3E%3Ccircle cx='96' cy='262' r='10'/%3E%3Cline x1='60' y1='254' x2='90' y2='226'/%3E%3C!-- Bar chart bottom-right --%3E%3Crect x='210' y='268' width='16' height='42'/%3E%3Crect x='232' y='252' width='16' height='58'/%3E%3Crect x='254' y='278' width='16' height='32'/%3E%3Crect x='276' y='260' width='16' height='50'/%3E%3Cline x1='208' y1='311' x2='296' y2='311'/%3E%3C!-- Small house bottom-left --%3E%3Cpolygon points='108,228 146,196 184,228'/%3E%3Crect x='118' y='228' width='56' height='40'/%3E%3Crect x='138' y='243' width='16' height='25'/%3E%3C!-- Trend line --%3E%3Cpolyline points='22,318 55,292 88,306 124,270 164,280 204,248 244,255 298,222'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 360px 360px;
}

body.auth-body .auth-wrapper {
    position: relative;
    z-index: 1;
}

.auth-wrapper {
    width: 100%;
    max-width: 460px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Brand */
.auth-brand {
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-brand a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #263447;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-brand a:hover {
    color: #5B8DB8;
}

.auth-brand-icon {
    font-size: 1.8rem;
}

.auth-brand-name {
    letter-spacing: 0.02em;
}

/* Card */
.auth-card {
    width: 100%;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 32px rgba(38,52,71,.09), 0 2px 6px rgba(38,52,71,.05);
    border-top: 3px solid #5B8DB8;
}

.auth-card .card-body {
    padding: 2.5rem !important;
}

/* Heading inside card */
.auth-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #263447;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1.75rem;
}

/* Form inputs */
.auth-card .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.35rem;
}

.auth-card .form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-card .form-control:focus {
    border-color: #5B8DB8;
    box-shadow: 0 0 0 3px rgba(91, 141, 184, 0.15);
}

/* Primary button */
.btn-auth {
    background-color: #5B8DB8;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem;
    width: 100%;
    transition: background-color 0.2s ease;
}

.btn-auth:hover,
.btn-auth:focus {
    background-color: #3D6E96;
    color: #fff;
}

.btn-auth:disabled {
    background-color: #a4c4dc;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: #9ca3af;
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid #e5e7eb;
}

/* Links */
.auth-link {
    color: #5B8DB8;
    text-decoration: none;
    font-size: 0.875rem;
}

.auth-link:hover {
    color: #3D6E96;
    text-decoration: underline;
}

/* Alert override */
.auth-card .alert {
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 0.65rem 1rem;
}

/* Password toggle */
.input-group .btn-outline-secondary {
    border-color: #d1d5db;
    color: #6c757d;
    border-radius: 0 8px 8px 0 !important;
}

.input-group .form-control {
    border-radius: 8px 0 0 8px !important;
}

/* Footer */
.auth-footer {
    color: #64748b !important;
    font-size: 0.8rem;
}

.auth-footer a {
    color: #5B8DB8 !important;
}

.auth-footer a:hover {
    color: #3D6E96 !important;
}

/* Validation */
.auth-card .text-danger {
    font-size: 0.8rem;
}

.auth-card .field-validation-error {
    font-size: 0.8rem;
    color: #dc3545;
}
