/* Fitness.CareDesk — Auth Pages */

:root {
    --cd-blue: #005696;
    --cd-blue-dark: #004D6E;
    --cd-teal: #00A8B5;
    --cd-green: #76BC21;
    --cd-dark: #0A2540;
    --cd-muted: #6B7280;
    --cd-border: #DDE8F0;
    --cd-gradient: linear-gradient(160deg, #76BC21 0%, #00A8B5 45%, #005696 100%);
    --cd-gradient-soft: linear-gradient(160deg, #F0FAE8 0%, #E8F7FA 50%, #FFFFFF 100%);
    --cd-font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

body.cd-auth {
    font-family: var(--cd-font);
    margin: 0;
    min-height: 100vh;
    background: var(--cd-gradient-soft);
}

.cd-auth .loader-bg { display: none !important; }

.cd-auth-wrap {
    min-height: 100vh;
    display: flex;
}

.cd-auth-brand {
    flex: 1;
    background: var(--cd-gradient);
    color: #fff;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cd-auth-brand::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.cd-auth-brand::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 240px;
    height: 240px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.cd-auth-brand-inner { position: relative; z-index: 1; max-width: 420px; }

.cd-auth-brand img.cd-auth-logo { height: 52px; margin-bottom: 32px; filter: brightness(0) invert(1); }

.cd-auth-brand h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.cd-auth-brand .tagline {
    font-size: 1rem;
    opacity: 0.9;
    letter-spacing: 0.06em;
    margin-bottom: 32px;
}

.cd-auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cd-auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    opacity: 0.92;
}

.cd-auth-features li i { font-size: 1.1rem; }

.cd-auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: #fff;
}

.cd-auth-card {
    width: 100%;
    max-width: 420px;
}

.cd-auth-card .mobile-logo {
    display: none;
    margin-bottom: 24px;
}

.cd-auth-card .mobile-logo img { height: 44px; }

.cd-auth-card h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--cd-dark);
    margin-bottom: 8px;
}

.cd-auth-card .subtitle {
    color: var(--cd-muted);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.cd-auth-card .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--cd-dark);
    margin-bottom: 6px;
}

.cd-auth-card .form-control {
    border: 1.5px solid var(--cd-border);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cd-auth-card .form-control:focus {
    border-color: var(--cd-blue);
    box-shadow: 0 0 0 3px rgba(0, 86, 150, 0.12);
}

.cd-auth-card .form-floating > label { padding: 1rem 16px; }

.cd-auth-card .form-floating > .form-control {
    padding: 1rem 16px;
    height: calc(3.25rem + 2px);
}

.cd-auth-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--cd-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: filter 0.2s, transform 0.2s;
    box-shadow: 0 8px 24px -8px rgba(0, 86, 150, 0.4);
}

.cd-auth-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    color: #fff;
}

.cd-auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 24px;
    font-size: 0.875rem;
}

.cd-auth-links a { color: var(--cd-blue); text-decoration: none; font-weight: 600; }
.cd-auth-links a:hover { color: var(--cd-teal); }

.cd-auth-footer-text {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--cd-border);
    color: var(--cd-muted);
    font-size: 0.9rem;
}

.cd-auth-footer-text a { color: var(--cd-blue); font-weight: 700; text-decoration: none; }

.cd-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cd-muted);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 24px;
    font-weight: 500;
}

.cd-auth-back:hover { color: var(--cd-blue); }

.cd-auth-terms .form-check-label {
    font-size: 0.875rem;
    color: var(--cd-muted);
    line-height: 1.5;
}

.cd-auth-terms a {
    color: var(--cd-blue);
    font-weight: 600;
    text-decoration: none;
}

.cd-auth-terms a:hover { color: var(--cd-teal); }

.cd-auth-form-panel {
    overflow-y: auto;
}

.cd-auth-captcha .cd-captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cd-captcha-question {
    flex-shrink: 0;
    min-width: 88px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(118, 188, 33, 0.15), rgba(0, 86, 150, 0.12));
    border: 1.5px solid var(--cd-border);
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--cd-blue-dark);
    text-align: center;
}

.cd-auth-captcha .form-control {
    max-width: 140px;
}

@media (max-width: 991px) {
    .cd-auth-brand { display: none; }
    .cd-auth-card .mobile-logo { display: block; }
    .cd-auth-form-panel { background: var(--cd-gradient-soft); }
}
