.sp-auth {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(360px, 1.15fr);
    max-width: 960px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #dbe5f2;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(30, 43, 67, .08);
    color: #1e2b43;
}

.sp-auth * {
    box-sizing: border-box;
}

.sp-auth-intro {
    position: relative;
    min-height: 500px;
    padding: 44px 38px;
    overflow: hidden;
    background: linear-gradient(145deg, #eff6ff, #f0fdf4);
}

.sp-auth-kicker {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sp-auth-intro h1,
.sp-auth-logout h1 {
    margin: 10px 0 14px;
    color: #1e2b43;
    font-size: clamp(31px, 4vw, 44px);
    line-height: 1.08;
}

.sp-auth-intro p,
.sp-auth-logout p {
    color: #52627a;
    line-height: 1.6;
}

.sp-auth-decoration {
    position: absolute;
    right: -22px;
    bottom: 35px;
    left: 38px;
    color: rgba(37, 99, 235, .17);
    font-size: 62px;
    font-weight: 900;
    line-height: .75;
    transform: rotate(-4deg);
}

.sp-auth-decoration span {
    padding-left: 35px;
    font-size: 25px;
}

.sp-auth-card {
    align-self: center;
    padding: 42px;
}

.sp-auth-card h2 {
    margin: 0;
    color: #1e2b43;
    font-size: 29px;
}

.sp-auth-subtitle {
    margin: 5px 0 23px;
    color: #64748b;
    line-height: 1.5;
}

.sp-auth-form,
.sp-auth-form label:not(.sp-auth-remember) {
    display: grid;
    gap: 8px;
}

.sp-auth-form {
    gap: 18px;
}

.sp-auth-form label > span:first-child {
    font-size: 14px;
    font-weight: 700;
}

.sp-auth-form input[type='text'],
.sp-auth-form input[type='password'] {
    width: 100%;
    min-height: 51px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    background: #fff;
    color: #1e2b43;
    font-size: 16px;
}

.sp-auth-form input:focus {
    border-color: #2563eb;
    outline: 3px solid rgba(37, 99, 235, .12);
}

.sp-auth-password-field {
    position: relative;
    display: block;
}

.sp-auth-password-field input {
    padding-right: 92px !important;
}

.sp-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    padding: 7px 9px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.sp-auth-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #52627a;
    font-size: 14px;
}

.sp-auth-submit {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .2);
}

.sp-auth-submit:hover {
    background: #1d4ed8;
    color: #fff;
}

.sp-auth-secondary {
    margin: 0;
    color: #64748b;
    text-align: center;
}

.sp-auth-secondary a,
.sp-auth-forgot a,
.sp-auth-notice a {
    color: #2563eb;
    font-weight: 700;
}

.sp-auth-forgot {
    margin: -5px 0 0;
    text-align: right;
}

.sp-auth-reset .sp-auth-form {
    max-width: 390px;
    margin: 24px auto 0;
    text-align: left;
}

.sp-auth-notice {
    max-width: 960px;
    margin: 0 auto 18px;
    padding: 14px 16px;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    background: #eff6ff;
    color: #1e40af;
    line-height: 1.5;
}

.sp-auth-notice-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.sp-auth-notice-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.sp-auth-logout {
    max-width: 650px;
    margin: 0 auto;
    padding: 42px;
    border: 1px solid #dbe5f2;
    border-radius: 26px;
    background: linear-gradient(145deg, #fff, #f8fafc);
    box-shadow: 0 20px 55px rgba(30, 43, 67, .08);
    text-align: center;
}

.sp-auth-logout-icon {
    margin-bottom: 12px;
    font-size: 48px;
}

.sp-auth-logout form {
    display: grid;
    max-width: 330px;
    gap: 12px;
    margin: 27px auto 0;
}

.sp-auth-submit-logout {
    background: #1e2b43;
    box-shadow: none;
}

.sp-auth-submit-logout:hover {
    background: #0f172a;
}

.sp-auth-cancel {
    padding: 10px;
    color: #52627a;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 760px) {
    .sp-auth {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .sp-auth-intro {
        min-height: 270px;
    }

    .sp-auth-intro,
    .sp-auth-card,
    .sp-auth-logout {
        padding: 28px 22px;
    }

    .sp-auth-decoration {
        bottom: 28px;
        font-size: 48px;
    }
}
