.external-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 10%, rgba(208, 62, 157, 0.14), transparent 42%),
        radial-gradient(circle at 80% 90%, rgba(6, 62, 157, 0.2), transparent 36%),
        #eef3fc;
}

.auth-shell {
    min-height: 100vh;
    padding: 16px;
    align-items: center;
}

.auth-card {
    display: flex;
    width: min(960px, 100%);
    height: clamp(620px, 80vh, 760px);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.auth-card-compact {
    display: flex;
    width: min(860px, 100%);
    height: clamp(440px, 62vh, 540px);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.auth-card-compact > .row {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.auth-card-compact > .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.auth-card > .row {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.auth-card > .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.auth-promo {
    background: linear-gradient(150deg, #063e9d 0%, #0b56c9 75%);
    color: #fff;
    min-height: 320px;
}

.auth-media-panel {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: #0f4ca8;
    overflow: hidden;
}

.auth-media-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity .28s ease;
}

.auth-media-cover.is-changing {
    opacity: .2;
}

.auth-media-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    color: #fff;
    background: linear-gradient(to top, rgba(2, 20, 53, 0.7), rgba(2, 20, 53, 0));
}

.auth-promo .promo-badge {
    background-color: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.auth-form-wrap {
    padding: 32px;
    height: 100%;
}

.auth-theme-toggle {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 6;
}

.auth-logo img {
    width: 28px;
    height: 28px;
}

.auth-divider {
    position: relative;
    text-align: center;
    color: var(--pe-secondary-color);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35%;
    border-top: 1px solid var(--pe-border-color);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-social-btn {
    font-size: 0.875rem;
    white-space: nowrap;
}

.auth-form-wrap .text-danger.small,
.auth-form-wrap .validation-summary-errors,
.auth-form-wrap [data-valmsg-for] {
    font-size: 0.72rem !important;
    line-height: 1.2;
}

.auth-form-wrap .validation-summary-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-form-wrap .validation-summary-errors li {
    margin: 0;
    padding: 0;
}

.auth-form-wrap .btn-primary {
    background-color: var(--survee-primary);
    border-color: var(--survee-primary);
}

.auth-form-wrap .btn-primary:hover,
.auth-form-wrap .btn-primary:focus {
    background-color: var(--survee-primary-dark);
    border-color: var(--survee-primary-dark);
}

@media (max-height: 820px) and (min-width: 992px) {
    .auth-shell {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .auth-form-wrap {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .auth-card {
        height: clamp(600px, 80vh, 720px);
    }
}

@media (max-width: 991.98px) {
    .auth-card {
        width: min(620px, 100%);
        height: auto;
    }

    .auth-card-compact {
        width: min(620px, 100%);
        height: auto;
    }

    .auth-promo {
        min-height: auto;
    }

    .auth-form-wrap {
        padding: 24px;
    }

    .auth-theme-toggle {
        right: 16px;
        bottom: 16px;
    }
}
