/* Login Page Styles */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --success: #10b981;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;

    /* overridden by dynamic-colors.php */
    --login-background: #e6f4ea;
    --login-text: #000000;
    --login-text-secondary: #4b5563;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--login-background);
    background-image: radial-gradient(circle at 1px 1px, rgba(99,102,241,0.045) 1px, transparent 0);
    background-size: 24px 24px;
    color: var(--login-text);
    min-height: 100vh;
}

main {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ── Background animated blobs ────────────────── */
main::before {
    content: '';
    position: fixed;
    top: -200px;
    left: -200px;
    width: 680px;
    height: 680px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%,
        rgba(99, 102, 241, 0.20) 0%,
        rgba(129, 140, 248, 0.08) 45%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: bgBlob1 22s ease-in-out infinite;
}

main::after {
    content: '';
    position: fixed;
    bottom: -180px;
    right: -180px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle at 55% 55%,
        rgba(16, 185, 129, 0.16) 0%,
        rgba(52, 211, 153, 0.06) 45%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: bgBlob2 28s ease-in-out 6s infinite;
}

nav { display: none; }

/* ── Two-panel container ────────────────────── */
.login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Blob 3 — top-right amber */
.login-container::before {
    content: '';
    position: fixed;
    top: 15%;
    right: -60px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
        rgba(245, 158, 11, 0.11) 0%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: bgBlob3 17s ease-in-out 11s infinite reverse;
}

/* Blob 4 — center-left violet */
.login-container::after {
    content: '';
    position: fixed;
    bottom: 8%;
    left: 8%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
        rgba(139, 92, 246, 0.12) 0%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: bgBlob4 20s ease-in-out 3s infinite;
}

/* ── Left: Brand Panel ───────────────────────────── */
.login-brand-panel {
    width: 42%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 44px;
    background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    animation: slideInLeft 0.6s ease-out both;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(255,255,255,0.10) 0%, transparent 55%),
        radial-gradient(circle at 85% 85%, rgba(255,255,255,0.06) 0%, transparent 55%),
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: auto, auto, 44px 44px, 44px 44px;
    pointer-events: none;
}

.login-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.10);
    pointer-events: none;
}

/* Decorative floating orbs on the brand panel */
.brand-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.orb-one {
    top: 12%;
    right: 8%;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.22), rgba(255,255,255,0.04) 70%);
    animation: float-orb 7s ease-in-out infinite;
}

.orb-two {
    bottom: 18%;
    left: 6%;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at 30% 30%, rgba(243,156,18,0.30), rgba(243,156,18,0.05) 70%);
    animation: float-orb 9s ease-in-out 1.2s infinite;
}

.orb-three {
    bottom: 5%;
    right: 12%;
    width: 56px;
    height: 56px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.16), rgba(255,255,255,0.02) 70%);
    animation: float-orb 6s ease-in-out 0.6s infinite;
}

@keyframes float-orb {
    0%, 100% { transform: translateY(0) translateX(0); }
    50%      { transform: translateY(-18px) translateX(10px); }
}

.brand-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 300px;
}

.brand-logo-wrap {
    width: 88px;
    height: 88px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    padding: 10px;
    backdrop-filter: blur(6px);
    animation: logo-glow 3.5s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
    50%       { box-shadow: 0 0 26px 6px rgba(255,255,255,0.10); }
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ── Brand name ─────────────────────── */
.brand-name {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1.2px;
    margin-bottom: 5px;
    line-height: 1.05;
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.20);
}

/* Color-coded spans — same palette as sidebar & hero */
.brand-hl { color: #f39c12; font-weight: 900; }
.brand-ac { color: #e74c3c; font-weight: 900; }

/* Inline brand on white backgrounds (subtitle, footer) */
.brand-inline            { font-weight: 700; }
.brand-inline .brand-hl  { color: #f39c12; }
.brand-inline .brand-ac  { color: #e74c3c; }

.brand-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.70);
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.5;
}

/* Separator line between tagline & feature list */
.brand-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 16px 0;
}

/* "Powered by" pill — sits below features */
.brand-powered {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 18px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    font-size: 10.5px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-powered strong {
    font-size: 12.5px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.3px;
    text-transform: none;
}

/* "Powered by" in the form-panel footer */
.footer-powered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 11px;
    color: var(--gray-400);
}

.footer-powered-name {
    font-weight: 700;
    color: var(--gray-600);
    font-size: 11.5px;
}

.brand-features {
    list-style: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.92;
}

.brand-feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.brand-feature-icon svg {
    width: 14px;
    height: 14px;
    color: #fcd34d;
}

/* ── Right: Form Panel ───────────────────────────── */
.login-form-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 56px;
    background:
        radial-gradient(circle at 10% 5%, rgba(99, 102, 241, 0.07) 0%, transparent 42%),
        radial-gradient(circle at 92% 95%, rgba(16, 185, 129, 0.06) 0%, transparent 42%),
        linear-gradient(rgba(99, 102, 241, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.022) 1px, transparent 1px),
        #fdfdfe;
    background-size: 100% 100%, 100% 100%, 34px 34px, 34px 34px, 100% 100%;
    overflow-y: auto;
    animation: fadeInRight 0.6s ease-out 0.1s both;
}

/* Mobile-only logo row (hidden on desktop) */
.login-mobile-header {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

.mobile-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
}

.mobile-company-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

/* ── Company name display (form panel top) ─────────── */
/* ── Company name card (form panel) ────────────────── */
.company-name-header {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    margin-bottom: 26px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #e0e7ff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(99,102,241,0.07);
}

.company-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
    letter-spacing: -0.5px;
    box-shadow: 0 4px 12px rgba(99,102,241,0.30);
    text-shadow: 0 1px 3px rgba(0,0,0,0.18);
}

.company-name-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.company-name-value {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.company-name-label {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--gray-400);
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 0;
}

/* Header */
.login-header {
    margin-bottom: 24px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 5px;
    letter-spacing: -0.3px;
}

.login-subtitle {
    color: var(--gray-500);
    font-size: 14px;
}

/* ── Form ────────────────────────────────────────── */
.login-form {
    width: 100%;
}

/* ── Login card (desktop form container) ─────────── */
.login-card {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 32px 34px 30px;
    box-shadow:
        0 24px 64px -28px rgba(17, 24, 39, 0.22),
        0 4px 14px -6px rgba(17, 24, 39, 0.06);
    animation: slideUp 0.5s ease-out 0.12s both;
}

.form-group {
    margin-bottom: 20px;
}

/* Label row: label + forgot-password side by side */
.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.form-group > label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.label-row > label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.required { color: var(--danger); }

.input-wrapper { position: relative; }

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-400);
    pointer-events: none;
}

.form-control {
    width: 100%;
    padding: 13px 14px 13px 44px;
    border: 1.5px solid var(--gray-200);
    border-radius: 11px;
    font-size: 15px;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--gray-50);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control:hover { border-color: var(--gray-300); }

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.13);
}

.form-control::placeholder { color: var(--gray-400); }

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    -webkit-text-fill-color: var(--gray-900);
    caret-color: var(--gray-900);
    transition: background-color 9999s ease-in-out 0s;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    line-height: 0;
    transition: color 0.2s;
}

.password-toggle:hover { color: var(--gray-600); }

.forgot-link {
    font-size: 13px;
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Alert */
.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Remember Me + Forgot password side-by-side */
.form-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.remember-me-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.remember-me-label input[type="checkbox"] { display: none; }

.remember-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 5px;
    background: #fff;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.remember-me-label input:checked + .remember-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.remember-me-label input:checked + .remember-checkbox::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me-label:hover .remember-checkbox { border-color: var(--primary); }

.remember-text {
    font-size: 14px;
    color: var(--gray-600);
}

/* Button */
.btn {
    width: 100%;
    max-width: 560px;
    padding: 13px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-primary:hover::before { left: 160%; }

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn:disabled,
.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}
.btn:disabled::before { display: none; }

.btn-icon { width: 18px; height: 18px; }

.btn:focus-visible,
.forgot-link:focus-visible,
.password-toggle:focus-visible,
.remember-me-label:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Validating + Success states */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.40) !important;
    opacity: 1 !important;
    pointer-events: none;
}
.btn-success:disabled {
    opacity: 1 !important;
    cursor: default;
    transform: none !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.40) !important;
}
.btn-success .btn-icon {
    animation: successPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes successPop {
    0% { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Footer */
.login-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
    width: 100%;
    max-width: 560px;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-link-small {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-link-small:hover { color: var(--primary); }

.divider { color: var(--gray-300); font-size: 12px; }

.footer-copyright p {
    font-size: 12px;
    color: var(--gray-400);
    margin: 3px 0;
}

.footer-version-mini {
    margin-top: 6px;
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── DB Status pill (fixed) ──────────────────────── */
.db-status {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.db-status:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(0,0,0,0.25);
}

.db-connected {
    background: rgba(16,185,129,0.95);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.25);
    animation: pulse-green 2.5s ease-in-out infinite;
}

.db-disconnected {
    background: rgba(239,68,68,0.95);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.25);
    animation: pulse-red 1.2s ease-in-out infinite;
}

.db-icon { width: 18px; height: 18px; }
.db-connected .db-icon { animation: rotate 4s linear infinite; }
.db-disconnected .db-icon { animation: shake 0.5s ease-in-out infinite; }
.db-text { line-height: 1; font-weight: 700; }

/* ── Animations ──────────────────────────────────── */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes bgBlob1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%       { transform: translate(55px, 40px) scale(1.07); }
    50%       { transform: translate(25px, 80px) scale(0.94); }
    75%       { transform: translate(-18px, 28px) scale(1.03); }
}

@keyframes bgBlob2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    30%       { transform: translate(-48px, -28px) scale(1.08); }
    65%       { transform: translate(-75px, 18px) scale(0.92); }
}

@keyframes bgBlob3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%       { transform: translate(22px, 45px) scale(1.09); }
    70%       { transform: translate(-12px, -22px) scale(0.95); }
}

@keyframes bgBlob4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    35%       { transform: translate(32px, -22px) scale(1.06); }
    70%       { transform: translate(-18px, 32px) scale(0.96); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes shake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-3px); }
    75%      { transform: translateX(3px); }
}

@keyframes pulse-green {
    0%,100% { box-shadow: 0 4px 16px rgba(16,185,129,0.35); }
    50%      { box-shadow: 0 4px 24px rgba(16,185,129,0.65); }
}

@keyframes pulse-red {
    0%,100% { box-shadow: 0 4px 16px rgba(239,68,68,0.35); }
    50%      { box-shadow: 0 4px 24px rgba(239,68,68,0.65); }
}

/* ── Alert variants ─────────────────────────────── */
.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

/* ── Footer "Sign in" link row ───────────────────── */
.footer-text {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.footer-link {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ── Secondary button (modal cancel) ─────────────── */
.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1.5px solid var(--gray-200);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: none;
    box-shadow: none;
}

/* ── Countdown box ───────────────────────────────── */
.reset-countdown {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    font-size: 14px;
    color: var(--gray-700);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 860px) {
    .login-brand-panel { width: 36%; padding: 40px 28px; }
    .brand-name        { font-size: 26px; }
    .login-form-panel  { padding: 40px 36px; }
}

@media (max-width: 768px) {
    .login-brand-panel { width: 34%; padding: 32px 20px; }
    .brand-name        { font-size: 20px; }
    .login-form-panel  { padding: 32px 28px; min-width: 0; }
}

@media (max-width: 480px) {
    .login-brand-panel    { display: none; }
    .login-mobile-header  { display: flex; }

    .login-form-panel {
        padding: 32px 24px;
        justify-content: flex-start;
        padding-top: 60px;
        background: #ffffff;
        background-image: none;
    }

    .login-card {
        padding: 26px 22px 24px;
        border-radius: 14px;
        box-shadow: 0 12px 32px -14px rgba(17, 24, 39, 0.14);
    }

    .db-status {
        top: 12px;
        right: 12px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .db-text  { display: none; }
    .db-icon  { width: 16px; height: 16px; }

    .login-title { font-size: 24px; }
}

@media (max-width: 400px) {
    .login-form-panel { padding: 24px 16px; padding-top: 52px; }
}

/* ── Floating Countdown Card ────────────────────────── */
.alert-floating {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    width: 380px;
    max-width: calc(100% - 48px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-left: 5px solid #ef4444;
    border-radius: 12px;
    padding: 16px 20px 16px 16px;
    color: #1f2937;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05), 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 14px;
    animation: toastSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.alert-floating .alert-icon {
    color: #ef4444;
    width: 24px;
    height: 24px;
}

.alert-floating div {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

@keyframes toastSlideIn {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

