/* ===================================
   Account Pages — Login, Register, Forgot Password
   =================================== */

.account-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-50);
    padding: 2rem 1rem;
}

.account-card {
    width: 100%;
    max-width: 440px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

/* Wider variant for forms with 2-column layout (e.g. signup) */
.account-card--wide {
    max-width: 680px;
}

.account-card__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.account-card__logo img {
    height: 40px;
    width: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.account-card__title {
    font-size: var(--text-h2);
    font-weight: 700;
    color: var(--color-gray-900);
    text-align: center;
    margin-bottom: 0.25rem;
}

.account-card__subtitle {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    text-align: center;
    margin-bottom: 1.75rem;
}

/* ===== Form Controls ===== */

.account-card .form-control {
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.75rem;
    font-size: var(--text-body);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.account-card .form-control:focus {
    border-color: var(--color-brand-600);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

.account-card .form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 0.375rem;
}

/* ===== Password Toggle ===== */

.account-password-wrap {
    position: relative;
}

.account-password-wrap .form-control {
    padding-right: 2.75rem;
}

.account-password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
    padding: 0;
}

.account-password-toggle:hover {
    color: var(--color-gray-700);
}

/* ===== Forgot Password Link ===== */

.account-forgot {
    text-align: right;
    margin-bottom: 1.25rem;
}

.account-forgot a {
    font-size: var(--text-sm);
    color: var(--color-brand-600);
    text-decoration: none;
    font-weight: 500;
}

.account-forgot a:hover {
    text-decoration: underline;
}

/* ===== Buttons ===== */

.account-btn--lg {
    height: 44px;
    font-size: var(--text-body);
    font-weight: 700;
}

.account-card .btn-primary {
    width: 100%;
}

/* ===== Error Alert ===== */

.account-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    margin-bottom: 1.25rem;
}

.account-alert__icon {
    flex-shrink: 0;
}

.account-alert--danger {
    background: var(--color-danger-light);
    color: var(--color-danger);
    border: 1px solid var(--color-danger-accent);
}

/* ===== Footer & Divider ===== */

.account-card__footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

.account-card__footer a {
    color: var(--color-brand-600);
    font-weight: 600;
    text-decoration: none;
}

.account-card__footer a:hover {
    text-decoration: underline;
}

.account-card__divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--color-gray-400);
    font-size: var(--text-sm);
}

.account-card__divider::before,
.account-card__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-gray-200);
}

/* Step indicator for multi-step forms */
.account-card__step {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-brand-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* ===== Step Navigation Buttons (Previous / Next) ===== */

.account-btn-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.account-btn-row .btn-primary {
    width: auto;
}

/* Outline secondary button for "Previous" */
.btn-outline-secondary {
    background: transparent;
    color: var(--color-gray-700);
    border-color: var(--color-gray-300);
}

.btn-outline-secondary:hover {
    background: var(--color-gray-100);
    border-color: var(--color-gray-400);
    color: var(--color-gray-900);
}

/* ===== Info Note for Verification Steps ===== */

.account-info {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    margin-top: 1.25rem;
    line-height: 1.6;
}

.account-info a {
    color: var(--color-brand-600);
    font-weight: 500;
}

.account-info a:hover {
    text-decoration: underline;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 480px) {
    .account-page {
        align-items: flex-start;
        padding-top: 2rem;
    }

    .account-card {
        padding: 1.5rem;
        box-shadow: none;
        border: none;
        background: transparent;
    }

    .account-card__logo,
    .account-card__title,
    .account-card__subtitle {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .account-card--wide {
        max-width: 440px;
    }
}
