.auth-body {
    position: relative;
    isolation: isolate;
}

.auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(90, 169, 255, 0.15), transparent 32%),
        radial-gradient(circle at 80% 10%, rgba(73, 130, 194, 0.18), transparent 26%),
        linear-gradient(180deg, rgba(11, 18, 32, 0.92) 0%, rgba(10, 17, 30, 0.96) 100%);
    pointer-events: none;
    z-index: -1;
}

.auth-background-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(110px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.72;
}

.auth-background-orb-one {
    width: 24rem;
    height: 24rem;
    top: 6rem;
    left: -8rem;
    background: rgba(54, 126, 235, 0.18);
}

.auth-background-orb-two {
    width: 26rem;
    height: 26rem;
    right: -9rem;
    bottom: 4rem;
    background: rgba(25, 69, 164, 0.22);
}

.auth-body .card {
    max-width: 100%;
}

.auth-body .text-center h1,
.auth-body .text-center .h2 {
    letter-spacing: -0.03em;
}

.auth-body .text-center p {
    color: #9dafc6;
}

.auth-panel,
.auth-card {
    background: rgba(14, 22, 36, 0.92);
    border: 1px solid rgba(173, 197, 230, 0.12);
    border-radius: 1.25rem;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.28);
}

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

.auth-brand-title {
    margin-bottom: 0.35rem;
    color: #f8fbff;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.auth-brand-subtitle {
    color: #8ea2bc;
    font-size: 0.98rem;
}

.auth-form {
    padding: 2rem;
}

.auth-form .form-label {
    font-size: 0.95rem;
}

.auth-form .btn {
    min-height: 3.25rem;
}

.auth-shell {
    width: 100%;
    max-width: 760px;
}

.auth-header {
    padding-inline: 0.5rem;
}

.auth-brand-heading {
    letter-spacing: -0.04em;
    color: #f7fbff !important;
}

.auth-brand-copy {
    color: #a6bad6 !important;
}

.auth-layout-card {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 25, 40, 0.96), rgba(11, 19, 32, 0.98)) !important;
    border: 1px solid rgba(144, 176, 222, 0.12) !important;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-shell .container,
.auth-shell .row,
.auth-shell .col-12 {
    max-width: 100%;
}

.auth-shell .p-4,
.auth-shell .p-lg-5 {
    padding: clamp(1.25rem, 3vw, 2.5rem) !important;
}

.auth-shell .btn,
.auth-shell .form-control,
.auth-shell .form-select {
    width: 100%;
}

.auth-shell .d-flex.flex-wrap {
    gap: 0.75rem !important;
}

.auth-shell .badge {
    white-space: normal;
}

.auth-page h1 {
    letter-spacing: -0.03em;
}

.auth-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
}

.auth-footer-links a {
    color: #abd4ff;
    font-weight: 600;
}

.auth-check-card {
    padding: 1rem 1rem 1rem 2.4rem;
    border: 1px solid rgba(146, 179, 226, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.auth-check-card .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(144, 176, 222, 0.45);
}

.auth-check-card .form-check-input:checked {
    background-color: #4f9cff;
    border-color: #4f9cff;
}

.auth-check-label {
    color: #edf4ff;
    font-weight: 600;
}

.auth-code-box,
.verification-code-box {
    padding: 1rem 1.25rem;
    border: 1px solid rgba(90, 169, 255, 0.3);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(90, 169, 255, 0.12), rgba(47, 140, 255, 0.08));
    color: #e8f3ff;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(90, 169, 255, 0.08);
}

.auth-success-card {
    border-color: rgba(97, 219, 164, 0.24);
    background: linear-gradient(180deg, rgba(16, 35, 29, 0.92), rgba(13, 26, 23, 0.94));
}

.auth-note {
    color: #94a8c2;
    font-size: 0.95rem;
}

.premium-info-block-readable .text-muted {
    color: #9bb0ca !important;
}

.auth-readonly-value {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(144, 176, 222, 0.12) !important;
    color: #eef5ff !important;
    font-weight: 600;
    opacity: 1 !important;
}

.auth-readonly-value[readonly] {
    color: #eef5ff !important;
    -webkit-text-fill-color: #eef5ff;
    opacity: 1;
}

.auth-readonly-value:focus {
    box-shadow: none;
    border-color: rgba(144, 176, 222, 0.18) !important;
}

.auth-success-uid {
    text-align: center;
    font-size: 1.7rem;
    letter-spacing: 0.04em;
}

.auth-success-secret {
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.08em;
    font-family: "Consolas", "Courier New", monospace;
}

.auth-copy-uid-button {
    width: 100%;
    border: 0;
    text-align: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.auth-copy-uid-button:hover,
.auth-copy-uid-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(90, 169, 255, 0.16), 0 18px 32px rgba(0, 0, 0, 0.18);
}

.auth-copy-uid-button:focus-visible {
    outline: 2px solid rgba(99, 176, 255, 0.55);
    outline-offset: 2px;
}

.auth-copy-status {
    font-size: 0.95rem;
    font-weight: 600;
    color: #a9bbd3;
}

.auth-copy-status-success {
    color: #7fe0a9;
}

.auth-copy-status-pending {
    color: #dbe8f7;
}

.auth-shell .form-control,
.auth-shell .form-select {
    color: #f3f8ff !important;
}

.auth-shell .form-control::placeholder,
.auth-shell .form-select::placeholder {
    color: #f3f8ff !important;
    opacity: 0.78;
}

.auth-shell .text-danger {
    color: #ffd8dd !important;
}

.field-validation-visible {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.password-match-indicator {
    min-height: 1.5rem;
    margin-top: 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.password-match-indicator-pending {
    color: #a9bbd3;
}

.password-match-indicator-match {
    color: #7fe0a9;
}

.password-match-indicator-mismatch {
    color: #ff8f9d;
}

.auth-shell .form-control.password-field-match {
    border-color: rgba(127, 224, 169, 0.9) !important;
    box-shadow: 0 0 0 0.18rem rgba(127, 224, 169, 0.16);
}

.auth-shell .form-control.password-field-mismatch {
    border-color: rgba(255, 143, 157, 0.95) !important;
    box-shadow: 0 0 0 0.18rem rgba(255, 143, 157, 0.18);
}

.validation-summary-visible ul {
    margin: 0;
    padding-left: 1.1rem;
}

.validation-summary-visible li {
    color: #ffd8dd;
}

@media (max-width: 767.98px) {
    .container.min-vh-100 {
        padding-top: 1.25rem;
        padding-bottom: 1.5rem;
        align-items: flex-start !important;
    }

    .auth-form {
        padding: 1.5rem;
    }

    .auth-shell {
        max-width: 100%;
    }

    .auth-brand-title {
        font-size: 1.8rem;
    }

    .verification-code-box,
    .auth-code-box {
        font-size: 1.1rem;
        letter-spacing: 0.05em;
        padding: 0.9rem 1rem;
    }

    .auth-shell .p-4,
    .auth-shell .p-lg-5 {
        padding: 1.25rem !important;
    }

    .auth-shell .btn {
        min-height: 3.25rem;
    }

    .auth-shell .d-flex.flex-wrap.justify-content-between {
        flex-direction: column;
        align-items: stretch !important;
    }

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