.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(61, 117, 183, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.08), transparent 28%),
        linear-gradient(180deg, #f4f7fb 0%, #edf3f9 100%);
}

.auth-modern-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.auth-modern-page::before,
.auth-modern-page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.auth-modern-page::before {
    width: 34rem;
    height: 34rem;
    top: -16rem;
    inset-inline-start: -10rem;
    background: rgba(54, 116, 183, 0.12);
}

.auth-modern-page::after {
    width: 28rem;
    height: 28rem;
    bottom: -12rem;
    inset-inline-end: -10rem;
    background: rgba(15, 118, 110, 0.09);
}

.auth-modern-page .auth-page-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 5rem);
    padding: 2rem 0 3rem;
}

.auth-utility-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.auth-locale-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid rgba(110, 129, 155, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #355070;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(18, 38, 63, 0.06);
}

.auth-locale-switch:hover,
.auth-locale-switch:focus {
    color: #1f3552;
    background: #ffffff;
    border-color: rgba(54, 116, 183, 0.28);
}

.auth-brand-block {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6.75rem;
    height: 6.75rem;
    border-radius: 1.8rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(220, 228, 238, 0.88);
    box-shadow: 0 18px 45px rgba(18, 38, 63, 0.08);
}

.auth-brand-logo {
    max-width: 4.6rem;
    max-height: 4.6rem;
}

.auth-brand-name {
    margin: 1rem 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: #24415f;
}

.auth-brand-copy {
    margin: 0.35rem 0 0;
    color: #6d7f94;
    font-size: 0.92rem;
}

.auth-card {
    border: 0;
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 70px rgba(18, 38, 63, 0.12);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.auth-card .card-body {
    padding: 2rem;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(54, 116, 183, 0.1);
    color: #2f6ca9;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-title {
    margin: 1rem 0 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #17324d;
}

.auth-subtitle {
    margin: 0 auto;
    max-width: 28rem;
    color: #6d7f94;
    font-size: 0.98rem;
    line-height: 1.65;
}

.auth-form .form-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: #304860;
}

.auth-form .form-control,
.auth-form .form-select,
.auth-form .input-group-text,
.auth-form .input-group .btn {
    min-height: 3.35rem;
    border-color: #d8e1eb;
}

.auth-form .form-control,
.auth-form .form-select {
    border-radius: 1rem;
    background: #ffffff;
    color: #23384d;
    padding-inline: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-form .form-control::placeholder {
    color: #90a0b4;
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
    border-color: rgba(54, 116, 183, 0.45);
    box-shadow: 0 0 0 0.25rem rgba(54, 116, 183, 0.12);
}

.auth-form .input-group {
    border-radius: 1rem;
}

.auth-form .input-group:focus-within .input-group-text,
.auth-form .input-group:focus-within .btn {
    border-color: rgba(54, 116, 183, 0.45);
}

.auth-form .input-group-text,
.auth-form .input-group .btn {
    background: #f7f9fc;
    color: #6d7f94;
}

.auth-form .input-group-text {
    border-radius: 1rem 0 0 1rem;
    padding-inline: 1rem;
}

[dir="rtl"] .auth-form .input-group-text {
    border-radius: 0 1rem 1rem 0;
}

.auth-form .input-group > .form-control,
.auth-form .input-group > .form-select {
    border-inline-start: 0;
}

.auth-form .input-group > .form-control:last-child,
.auth-form .input-group > .form-select:last-child {
    border-radius: 0 1rem 1rem 0;
}

[dir="rtl"] .auth-form .input-group > .form-control,
[dir="rtl"] .auth-form .input-group > .form-select {
    border-inline-start: 1px solid #d8e1eb;
    border-inline-end: 0;
}

[dir="rtl"] .auth-form .input-group > .form-control:last-child,
[dir="rtl"] .auth-form .input-group > .form-select:last-child {
    border-radius: 1rem 0 0 1rem;
}

.auth-form .input-group .btn {
    border-radius: 0 1rem 1rem 0;
    padding-inline: 1rem;
}

[dir="rtl"] .auth-form .input-group .btn {
    border-radius: 1rem 0 0 1rem;
}

.auth-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-inline-start: 0;
    margin-bottom: 0;
}

.auth-form .form-check-input {
    float: none;
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.2rem 0 0;
    border-color: #b7c5d6;
}

.auth-form .form-check-label {
    color: #51677d;
    line-height: 1.55;
}

.auth-form .invalid-feedback {
    font-size: 0.78rem;
}

.auth-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0 0;
}

.auth-inline-link {
    color: #2f6ca9;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-inline-link:hover,
.auth-inline-link:focus {
    color: #204f7d;
}

.auth-note-box {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e0e8f1;
    border-radius: 1rem;
    background: #f7fafc;
}

.auth-download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    color: #2f6ca9;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-download-link:hover,
.auth-download-link:focus {
    color: #204f7d;
}

.auth-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.2rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(54, 116, 183, 0.14), rgba(11, 172, 153, 0.14));
    color: #2f6ca9;
    font-size: 1.8rem;
}

.auth-verify-copy {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #5f7288;
    line-height: 1.65;
}

.auth-verify-email {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
    padding: 0.65rem 0.9rem;
    border-radius: 0.9rem;
    background: #f4f7fb;
    color: #264663;
    font-weight: 700;
}

.auth-action-stack {
    display: grid;
    gap: 0.85rem;
}

.auth-submit-btn {
    min-height: 3.35rem;
    border: 0;
    border-radius: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #2d6aa5 0%, #3674b7 100%);
    box-shadow: 0 14px 30px rgba(54, 116, 183, 0.2);
}

.auth-submit-btn:hover,
.auth-submit-btn:focus {
    background: linear-gradient(135deg, #255b8e 0%, #2f6ca9 100%);
    box-shadow: 0 18px 36px rgba(54, 116, 183, 0.24);
}

.auth-outline-btn {
    min-height: 3.1rem;
    border-radius: 1rem;
    border-color: #c9d6e4;
    color: #325779;
    font-weight: 700;
}

.auth-outline-btn:hover,
.auth-outline-btn:focus {
    border-color: #2f6ca9;
    color: #204f7d;
    background: rgba(54, 116, 183, 0.05);
}

.auth-alert {
    border: 0;
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    margin-bottom: 1.25rem;
}

.auth-bottom-note {
    margin-top: 1.25rem;
    text-align: center;
    color: #617389;
    font-size: 0.92rem;
}

.auth-bottom-note a {
    color: #2f6ca9;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.auth-bottom-note a:hover,
.auth-bottom-note a:focus {
    color: #204f7d;
}

.auth-page-footer {
    position: relative;
    z-index: 1;
    padding: 0 0 1.5rem;
}

.auth-page-footer p {
    margin: 0;
    color: #6f8094;
}

@media (max-width: 767.98px) {
    .auth-modern-page .auth-page-content {
        align-items: flex-start;
        padding-top: 1.25rem;
    }

    .auth-card .card-body {
        padding: 1.5rem;
    }

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

    .auth-link-row {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-link-row .form-check {
        justify-content: center;
    }

    .auth-inline-link {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .auth-brand-link {
        width: 5.75rem;
        height: 5.75rem;
        border-radius: 1.4rem;
    }

    .auth-brand-logo {
        max-width: 4rem;
        max-height: 4rem;
    }

    .auth-card .card-body {
        padding: 1.25rem;
    }
}
