/*!
 * Career DNA System — Auth pages CSS
 */

/* Hide theme header/footer when on auth pages? Not by default — let theme show.
   But the auth-shell will be visually centered. */

.cds-auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--cds-bg) 0%, #EFF6FF 100%);
    padding: 40px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cds-auth-shell {
    width: 100%;
    max-width: 440px;
}

.cds-auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 10px 40px rgba(17, 24, 39, 0.08), 0 1px 3px rgba(17, 24, 39, 0.04);
    border: 1px solid var(--cds-border);
}

.cds-auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.cds-auth-logo {
    max-height: 56px;
    max-width: 200px;
}

.cds-auth-wordmark {
    font-size: 22px;
    font-weight: 700;
    color: var(--cds-primary);
    letter-spacing: -0.5px;
}

.cds-auth-tagline {
    color: var(--cds-muted);
    font-size: 13px;
    margin: 8px 0 0;
}

.cds-auth-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--cds-text);
    margin: 0 0 6px;
    text-align: center;
    letter-spacing: -0.3px;
}

.cds-auth-subtitle {
    font-size: 14px;
    color: var(--cds-muted);
    text-align: center;
    margin: 0 0 28px;
}

/* ============================================================
 * FORMS
 * ============================================================ */
.cds-form { display: flex; flex-direction: column; gap: 16px; }
.cds-field { display: block; }
.cds-help { font-size: 12px; color: var(--cds-muted); margin: 6px 0 0; }

.cds-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.cds-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--cds-text);
    cursor: pointer;
}
.cds-checkbox input { accent-color: var(--cds-primary); }

.cds-link {
    color: var(--cds-primary);
    text-decoration: none;
    font-size: 13px;
}
.cds-link:hover { text-decoration: underline; }
.cds-link-strong { font-weight: 600; }

.cds-password-wrap {
    position: relative;
}
.cds-password-wrap .cds-input {
    padding-right: 44px;
}
.cds-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--cds-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cds-password-toggle:hover { color: var(--cds-primary); background: var(--cds-bg); }

.cds-otp-input {
    text-align: center;
    font-size: 22px;
    letter-spacing: 8px;
    font-family: monospace;
    font-weight: 600;
}

.cds-btn-block {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
}

.cds-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cds-form-message {
    font-size: 13px;
    padding: 0;
    border-radius: 8px;
    display: none;
}
.cds-form-message.is-visible {
    display: block;
    padding: 10px 14px;
}
.cds-form-message.is-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FEE2E2;
}
.cds-form-message.is-success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #DCFCE7;
}

.cds-auth-footer {
    text-align: center;
    margin: 24px 0 0;
    font-size: 14px;
    color: var(--cds-muted);
}

.cds-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cds-spin 0.7s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}
@keyframes cds-spin {
    to { transform: rotate(360deg); }
}

/* Mobile */
@media (max-width: 480px) {
    .cds-auth-card { padding: 32px 22px; border-radius: 12px; }
    .cds-auth-title { font-size: 20px; }
    .cds-otp-input { font-size: 18px; letter-spacing: 6px; }
}
