/* Shared authentication layout styles */

.auth-section {
    padding: 3rem 0 4rem;
}

.auth-section--wide {
    padding-top: 2.5rem;
    padding-bottom: 4.5rem;
}

.auth-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    --auth-showcase-width: 340px;
}

.auth-layout--wide {
    gap: 1.75rem;
    --auth-showcase-width: 360px;
}

.auth-layout--centered {
    display: flex;
    justify-content: center;
    max-width: 560px;
    margin: 0 auto;
}

.auth-actions {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.auth-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-main {
    width: 100%;
    display: flex;
}

.auth-main > .auth-card {
    flex: 1 1 auto;
}

.auth-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(127, 77, 90, 0.12));
    padding: 2.5rem;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.auth-card--center {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
}

.auth-card--confirm {
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top: 4px solid var(--primary-color, var(--ameyze-primary, #7f4d5a));
    min-height: 320px;
}

.auth-card--confirm .auth-card__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(127, 77, 90, 0.08) 0%, rgba(127, 77, 90, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.auth-card--confirm .auth-card__icon i {
    font-size: 2.25rem;
    color: var(--primary-color, var(--ameyze-primary, #7f4d5a));
}

/* Success variant with green accent */
.auth-card--success {
    border-top-color: #198754;
}

.auth-card--success .auth-card__icon--success {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.1) 0%, rgba(25, 135, 84, 0.2) 100%);
}

.auth-card--success .auth-card__icon--success i {
    color: #198754;
    font-size: 2.5rem;
}

/* Info box for additional instructions */
.auth-card__info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(127, 77, 90, 0.05);
    border-radius: 12px;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.auth-card__info-box i {
    font-size: 1.5rem;
    color: var(--primary-color, var(--ameyze-primary, #7f4d5a));
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.auth-card__info-box p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--light-text, #84606b);
    line-height: 1.5;
}

.auth-card__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(127, 77, 90, 0.08) 0%, rgba(127, 77, 90, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card__icon i {
    font-size: 2.25rem;
    color: var(--primary-color, var(--ameyze-primary, #7f4d5a));
}

.auth-card__icon--error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.15) 100%);
}

.auth-card__icon--error i {
    color: #dc3545;
}

.auth-card__header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-card__header--centered {
    text-align: center;
}

.auth-card__stage {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-card__title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.auth-card__subtitle {
    color: var(--light-text);
    margin: 0;
    line-height: 1.5;
}

.auth-card__footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.auth-card__footer--borderless {
    border-top: none;
    padding-top: 0;
}

.auth-card__footer-text {
    margin: 0;
    color: var(--light-text);
}

.auth-showcase {
    background: var(--background-light);
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: var(--text-color);
}

.auth-cta {
    margin-top: auto;
    align-self: flex-start;
    padding: 0.75rem 1.85rem;
    font-weight: 600;
    border-radius: 999px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #fbe3ea, #f4bccf);
    color: #3b1f27;
    box-shadow: 0 12px 24px rgba(127, 77, 90, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    --bs-btn-color: #3b1f27;
    --bs-btn-hover-color: #3b1f27;
    --bs-btn-active-color: #3b1f27;
    --bs-btn-disabled-color: #3b1f27;
}

.auth-cta:hover,
.auth-cta:focus {
    color: #3b1f27;
    background: linear-gradient(135deg, #f8d4e1, #f1a9c2);
    box-shadow: 0 16px 28px rgba(127, 77, 90, 0.25);
    transform: translateY(-2px);
}

.auth-cta:focus-visible {
    outline: 3px solid rgba(59, 31, 39, 0.4);
    outline-offset: 2px;
}

.auth-showcase--stacked {
    position: static;
}

.auth-showcase__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.auth-showcase__subtitle {
    color: var(--light-text);
    margin: 0;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-color);
    line-height: 1.5;
}

.auth-feature-list i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(127, 77, 90, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    width: fit-content;
}

.auth-badge--soft {
    background: rgba(216, 169, 180, 0.15);
    color: var(--primary-dark);
}

.auth-badge--success {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
}

.form-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.form-text {
    color: var(--muted-text);
    font-size: 0.875rem;
}

.auth-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-form__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--light-text);
}

.auth-form__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    padding: 0.85rem 1.8rem;
}

.auth-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.auth-remember .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: var(--primary-color);
}

.auth-security-card {
    background: linear-gradient(135deg, rgba(127, 77, 90, 0.1), rgba(216, 169, 180, 0.15));
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.auth-security-card h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-dark);
}

.auth-security-card ul,
.auth-security-card ol {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* multi-step progress styles removed; see registration-specific CSS */

.address-section {
    border: 1px solid rgba(216, 169, 180, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.address-section__header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.address-section__header h2 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--primary-color);
}

.address-section__header h2 i {
    width: 42px;
    height: 42px;
    min-width: 42px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(127, 77, 90, 0.15), rgba(216, 169, 180, 0.35));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.auth-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--primary-color);
}

.auth-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
}

.auth-benefits {
    background: rgba(216, 169, 180, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.auth-benefits h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.05rem;
    color: var(--primary-dark);
}

.auth-benefits h3 i {
    width: 42px;
    height: 42px;
    min-width: 42px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(127, 77, 90, 0.15), rgba(216, 169, 180, 0.35));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.auth-benefits ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-summary {
    background: rgba(255, 255, 255, 0.6);
    border: 1px dashed rgba(127, 77, 90, 0.3);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.auth-summary h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-dark);
}

.auth-summary ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-success {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
}

.auth-info-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(127, 77, 90, 0.08);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    text-align: left;
    margin: 1.5rem 0 2rem;
}

.auth-info-box i {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.email-feedback {
    min-height: 1.1rem;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.email-feedback.error {
    color: #dc3545;
}

.email-feedback.success {
    color: #198754;
}

.form-error {
    color: #dc3545;
    font-size: 0.85rem;
}

@media (max-width: 991.98px) {
    .auth-section {
        padding: 2.5rem 0 3rem;
    }

    .auth-card,
    .auth-showcase {
        padding: 2rem;
    }

    .auth-showcase--stacked {
        position: static;
    }

    .auth-form__actions {
        flex-wrap: nowrap;
    }

    .auth-form__actions > div,
    .auth-form__actions > button {
        flex-shrink: 1;
    }

    .auth-form__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-submit {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .auth-section {
        padding: 1rem 0 2rem;
    }

    .auth-card,
    .auth-showcase {
        border-radius: 16px;
        padding: 1.25rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .auth-card__title {
        font-size: 1.55rem;
    }

    .auth-feature-list li {
        font-size: 0.95rem;
    }

    .multi-step-progress__step .step-label {
        font-size: 0.75rem;
    }

    .auth-info-box {
        flex-direction: column;
        text-align: center;
    }

    .auth-form__actions {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .auth-form__actions > button {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
    }

    .auth-submit {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Extra small screens (320px minimum) */
@media (max-width: 374px) {
    .auth-section {
        padding: 0.75rem 0 1.5rem;
    }

    .auth-card,
    .auth-showcase {
        padding: 1rem;
        border-radius: 12px;
        gap: 1.25rem;
    }

    .auth-card__title {
        font-size: 1.35rem;
    }

    .auth-card__subtitle {
        font-size: 0.9rem;
    }

    .auth-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .auth-actions .btn {
        width: 100%;
        padding: 0.7rem 0.75rem;
        font-size: 0.9rem;
    }

    .auth-layout--centered {
        padding: 0 0.25rem;
    }
}

@media (min-width: 992px) {
    .auth-layout,
    .auth-layout--wide {
        display: grid;
        grid-template-columns: minmax(0, 1fr) var(--auth-showcase-width, 340px);
        align-items: start;
        gap: 2.5rem;
    }

    .auth-layout--centered {
        display: flex;
        grid-template-columns: none;
    }

    .auth-main {
        width: 100%;
    }

    .auth-layout .auth-showcase,
    .auth-layout--wide .auth-showcase {
        width: 100%;
    }

    .auth-showcase--stacked {
        position: sticky;
        top: 100px;
    }
}
