.sr-auth-modal {
    --sr-auth-navy: #1b2f45;
    --sr-auth-blue: #3f69aa;
    --sr-auth-orange: #ff7801;
    --sr-auth-muted: #667085;
}

.sr-auth-modal .modal-dialog {
    max-width: 460px;
    padding: 1rem;
}

.sr-auth-card {
    border: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, #f7faff 0, #fff 32%);
    box-shadow: 0 24px 70px rgba(7, 16, 26, .24);
    overflow: hidden;
}

.sr-auth-card::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--sr-auth-blue), var(--sr-auth-orange));
}

.sr-auth-card .modal-body {
    padding: 2.35rem 2.5rem 2.2rem;
}

.sr-auth-close {
    position: absolute;
    z-index: 2;
    top: 1.15rem;
    right: 1.15rem;
    padding: .7rem;
    border-radius: 50%;
    background-color: rgba(27, 47, 69, .08);
    background-size: .75rem;
    opacity: .72;
}

.sr-auth-close:hover,
.sr-auth-close:focus-visible {
    opacity: 1;
    background-color: rgba(27, 47, 69, .14);
}

.sr-auth-header {
    margin-bottom: 1.35rem;
}

.sr-auth-logo {
    display: block;
    width: auto;
    max-width: 150px;
    height: 66px;
    object-fit: contain;
    margin: 0 auto .6rem;
}

.sr-auth-eyebrow {
    display: block;
    margin-bottom: .25rem;
    color: var(--sr-auth-orange);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sr-auth-header h2 {
    margin: 0;
    color: var(--sr-auth-navy);
    font-size: clamp(1.65rem, 5vw, 2rem);
    font-weight: 800;
    letter-spacing: -.025em;
}

.sr-auth-header p {
    max-width: 340px;
    margin: .55rem auto 0;
    color: var(--sr-auth-muted);
    font-size: .94rem;
    line-height: 1.55;
}

.sr-auth-provider,
.sr-auth-provider .gl-button-wrapper,
.sr-auth-provider .gl-button-container,
.sr-auth-provider .gl-button-container > div {
    display: flex;
    justify-content: center;
    width: 100%;
}

.sr-auth-divider {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 1.15rem 0;
    color: #98a2b3;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sr-auth-divider::before,
.sr-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e4e7ec;
}

.sr-auth-modal .form-label {
    margin-bottom: .42rem;
    color: #344054;
    font-size: .86rem;
    font-weight: 700;
}

.sr-auth-input-wrap {
    position: relative;
}

.sr-auth-input-wrap > .bi {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 1;
    color: #98a2b3;
    font-size: 1.05rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.sr-auth-modal .form-control {
    min-height: 50px;
    padding: .75rem 1rem .75rem 2.8rem;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background-color: #fff;
    color: var(--sr-auth-navy);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.sr-auth-modal .form-control:focus {
    border-color: var(--sr-auth-blue);
    box-shadow: 0 0 0 4px rgba(63, 105, 170, .13);
}

.sr-auth-forgot {
    margin-bottom: .42rem;
    color: var(--sr-auth-blue);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.sr-auth-forgot:hover {
    color: var(--sr-auth-navy);
    text-decoration: underline;
}

.sr-auth-remember {
    margin: .9rem 0 1.15rem;
    color: #475467;
    font-size: .86rem;
}

.sr-auth-remember .form-check-input:checked {
    border-color: var(--sr-auth-blue);
    background-color: var(--sr-auth-blue);
}

.sr-auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sr-auth-blue), #2e548c);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(63, 105, 170, .23);
}

.sr-auth-submit:hover,
.sr-auth-submit:focus-visible {
    background: linear-gradient(135deg, #315c99, var(--sr-auth-navy));
    color: #fff;
    transform: translateY(-1px);
}

.sr-auth-submit:disabled {
    opacity: .7;
    transform: none;
}

.sr-auth-feedback {
    margin-top: 1rem;
    padding: .75rem .9rem;
    border-radius: 10px;
    font-size: .86rem;
}

.sr-auth-feedback:not([hidden]) {
    display: block !important;
}

.sr-auth-footer {
    margin-top: 1.3rem;
    padding-top: 1.15rem;
    border-top: 1px solid #eaecf0;
    color: var(--sr-auth-muted);
    font-size: .88rem;
}

.sr-auth-footer a {
    margin-left: .25rem;
    color: var(--sr-auth-blue);
    font-weight: 800;
    text-decoration: none;
}

.sr-auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .sr-auth-modal .modal-dialog {
        align-items: flex-end;
        min-height: calc(100% - 1rem);
        margin: .5rem;
        padding: 0;
    }

    .sr-auth-card {
        border-radius: 22px 22px 16px 16px;
    }

    .sr-auth-card .modal-body {
        padding: 2rem 1.25rem 1.5rem;
    }

    .sr-auth-logo {
        height: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sr-auth-submit {
        transition: none;
    }
}
