/* ============================================= */
/* AUTH PAGES — Split Layout                     */
/* Template: templates/account/base.html         */
/*                                               */
/* BEM Naming:                                   */
/* - .auth-layout, .auth-brand, .auth-card       */
/* - .auth-form, .auth-social, .auth-divider     */
/* ============================================= */

/* ── Layout ── */

.auth-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--color-bg);
}

.auth-layout__brand-panel {
    width: var(--auth-brand-width);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.auth-layout__form-panel {
    width: var(--auth-form-width);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

/* ── Brand Panel ── */

.auth-brand {
    text-align: center;
}

.auth-brand__icon {
    font-size: var(--font-size-icon-hero);
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.auth-brand__title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-sm);
    color: var(--color-text-on-primary);
}

.auth-brand__tagline {
    font-size: var(--font-size-lg);
    opacity: 0.8;
    margin-bottom: 0;
}

/* ── Card ── */

.auth-card {
    width: 100%;
    max-width: var(--auth-card-max-width);
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2xl);
}

.auth-card__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--icon-size-md);
    height: var(--icon-size-md);
    border-radius: var(--radius-full);
    background-color: var(--color-primary);
    color: var(--color-text-on-primary);
    font-size: var(--font-size-icon-lg);
    margin-bottom: var(--space-md);
}

.auth-card__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.auth-card__subtitle {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

.auth-card__subtitle:empty {
    display: none;
}

/* ── Form ── */

.auth-form .form-group {
    margin-bottom: var(--space-md);
}

.auth-form .form-label {
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.auth-form__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.auth-form__actions .btn {
    width: 100%;
}

.auth-form__actions .auth-form__link {
    text-align: center;
}

.auth-form__actions--inline {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.auth-form__actions--inline .btn {
    width: auto;
}

.auth-form__link {
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.auth-form__link:hover,
.auth-form__link:focus {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

/* ── Social Login ── */

.auth-social {
    margin-bottom: var(--space-md);
}

.auth-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: var(--border-width-md) solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-card);
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-social__btn:hover,
.auth-social__btn:focus {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

/* ── Divider ── */

.auth-divider {
    display: flex;
    align-items: center;
    margin: var(--space-lg) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: var(--border-width-sm) solid var(--color-border);
}

.auth-divider__text {
    padding: 0 var(--space-md);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* ── Email List (email.html) ── */

.auth-email-list {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-lg);
}

.auth-email-list__item {
    padding: var(--space-sm) 0;
    border-bottom: var(--border-width-sm) solid var(--color-border-light);
}

.auth-email-list__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 0;
}

.auth-email-list__item:last-child {
    border-bottom: none;
}

.auth-email-list__address {
    font-weight: var(--font-weight-medium);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.auth-email-list__badges {
    display: flex;
    gap: var(--space-xs);
}

/* ── Responsive ── */

@media (max-width: 991.98px) {
    .auth-layout__brand-panel {
        display: none;
    }

    .auth-layout__form-panel {
        width: 100%;
        padding: var(--space-md);
    }

    .auth-card {
        box-shadow: var(--shadow-md);
    }
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: var(--space-lg);
    }
}
