.auth-modern-page {
    --auth-primary: var(--vz-primary, #405189);
    --auth-primary-rgb: 64, 81, 137;
    --auth-soft: rgba(var(--auth-primary-rgb), .08);
    --auth-border: #e5e9f0;
}

.auth-modern-page .auth-modern-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--auth-primary-rgb), .11);
    border-radius: 1rem;
    box-shadow: 0 18px 48px rgba(31, 45, 61, .10);
}

.auth-modern-page .auth-modern-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--auth-primary), #299cdb);
    content: '';
}

.auth-modern-page .auth-modern-header-icon {
    display: inline-flex;
    width: 3.5rem;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    color: var(--auth-primary);
    background: linear-gradient(145deg, rgba(var(--auth-primary-rgb), .13), rgba(41, 156, 219, .08));
    border: 1px solid rgba(var(--auth-primary-rgb), .12);
    border-radius: 1rem;
    font-size: 1.55rem;
}

.auth-modern-page .auth-modern-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: .3rem .65rem;
    color: var(--auth-primary);
    background: var(--auth-soft);
    border-radius: 2rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.auth-modern-page .auth-modern-submit {
    min-height: 46px;
    border: 0;
    border-radius: .65rem;
    box-shadow: 0 7px 16px rgba(10, 179, 156, .16);
}

.login-page .form-control {
    min-height: 46px;
    border-color: #d5dae3;
    border-radius: .65rem;
}

.login-page .form-control:focus {
    border-color: rgba(var(--auth-primary-rgb), .65);
    box-shadow: 0 0 0 3px rgba(var(--auth-primary-rgb), .10);
}

.login-page .login-user {
    display: block;
    border: 1px solid var(--auth-border) !important;
    border-radius: .7rem !important;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.login-page .login-user:hover {
    border-color: rgba(var(--auth-primary-rgb), .28) !important;
    background: #f8f9fc;
    transform: translateY(-1px);
}

.login-page .login-user.bg-soft-primary {
    border-color: rgba(var(--auth-primary-rgb), .35) !important;
}

.login-page .login-user input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.login-page .login-alert {
    border: 0;
    border-radius: .65rem;
}

.login-page .login-attempt-alert {
    border: 1px solid rgba(247, 184, 75, .2);
    border-radius: .65rem;
}

.login-page .login-attempt-alert.alert-danger {
    border-color: rgba(240, 101, 72, .2);
}

.two-factor-page .tf-card-body {
    position: relative;
}

.two-factor-page .tf-qr-panel {
    height: 100%;
    padding: 1.25rem;
    background: linear-gradient(145deg, #f8f9fc, #f2f5fa);
    border: 1px solid var(--auth-border);
    border-radius: .85rem;
}

.two-factor-page .tf-qr {
    display: flex;
    width: 216px;
    height: 216px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(var(--auth-primary-rgb), .13);
    border-radius: .8rem;
    box-shadow: 0 8px 24px rgba(31, 45, 61, .08);
}

.two-factor-page .tf-qr img,
.two-factor-page .tf-qr canvas {
    max-width: 100%;
    height: auto !important;
    border-radius: .25rem;
}

.two-factor-page .tf-steps,
.two-factor-page .tf-step {
    position: relative;
}

.two-factor-page .tf-step {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
}

.two-factor-page .tf-step + .tf-step {
    margin-top: 1rem;
}

.two-factor-page .tf-step-number {
    display: inline-flex;
    flex: 0 0 1.85rem;
    width: 1.85rem;
    height: 1.85rem;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--auth-primary);
    border-radius: .6rem;
    box-shadow: 0 5px 12px rgba(var(--auth-primary-rgb), .18);
    font-size: .75rem;
    font-weight: 700;
}

.two-factor-page .tf-step strong {
    display: block;
    margin-bottom: .15rem;
    color: #344054;
}

.two-factor-page .tf-secret {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem .75rem;
    background: #f8f9fc;
    border: 1px dashed #c7cfdb;
    border-radius: .6rem;
}

.two-factor-page .tf-secret code {
    flex: 1;
    color: #344054;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .08em;
    overflow-wrap: anywhere;
}

.two-factor-page .tf-code-label {
    display: block;
    margin-bottom: .75rem;
    color: #667085;
    font-size: .75rem;
    font-weight: 600;
    text-align: center;
}

.two-factor-page .tf-code-boxes {
    display: grid;
    max-width: 390px;
    grid-template-columns: repeat(6, 1fr);
    gap: .55rem;
    margin: 0 auto;
}

.two-factor-page .tf-code-box {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 0;
    color: #344054;
    background: #fff;
    border: 1px solid #d5dae3;
    border-radius: .7rem;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    caret-color: var(--auth-primary);
    font-variant-numeric: tabular-nums;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.two-factor-page .tf-code-box:focus {
    z-index: 1;
    outline: 0;
    border-color: rgba(var(--auth-primary-rgb), .65);
    box-shadow: 0 0 0 3px rgba(var(--auth-primary-rgb), .11);
    transform: translateY(-1px);
}

.two-factor-page .tf-code-box.tf-filled {
    color: var(--auth-primary);
    background: var(--auth-soft);
    border-color: rgba(var(--auth-primary-rgb), .28);
}

.two-factor-page .tf-security-note {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    padding: .75rem .85rem;
    color: #667085;
    background: #f8f9fc;
    border-radius: .65rem;
    font-size: .75rem;
    line-height: 1.45;
}

@media (max-width: 767.98px) {
    .auth-modern-page .auth-modern-card {
        border-radius: .8rem;
    }

    .two-factor-page .tf-qr {
        width: 196px;
        height: 196px;
    }

    .two-factor-page .tf-code-boxes {
        gap: .35rem;
    }

    .two-factor-page .tf-code-box {
        height: 48px;
        font-size: 1.15rem;
    }
}
