/* =========================================================
   SCREW ZONE LOGIN + CREATE ACCOUNT
   ========================================================= */

.sz-auth-page {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    padding: 54px 0 76px;
    background:
        radial-gradient(
            circle at 12% 10%,
            rgba(var(--sz-primary-rgb, 255, 107, 0), 0.14),
            transparent 30%
        ),
        linear-gradient(180deg, #f8f9fb, #ffffff);
}

.sz-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 0.78fr);
    overflow: hidden;
    border: 1px solid var(--sz-border, #e7e9ed);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(18, 24, 40, 0.12);
}

.sz-auth-shell--register {
    grid-template-columns: minmax(0, 0.72fr) minmax(560px, 1fr);
}

.sz-auth-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 52px;
    background:
        linear-gradient(
            140deg,
            #17191d,
            #272b32 65%,
            #3a3029
        );
    color: #ffffff;
}

.sz-auth-visual::before {
    content: "";
    position: absolute;
    top: -110px;
    right: -110px;
    width: 320px;
    height: 320px;
    border: 70px solid rgba(255, 107, 0, 0.15);
    border-radius: 50%;
}

.sz-auth-visual::after {
    content: "";
    position: absolute;
    right: 56px;
    bottom: 50px;
    width: 120px;
    height: 120px;
    border: 22px solid rgba(255, 255, 255, 0.055);
    border-radius: 30px;
    transform: rotate(28deg);
}

.sz-auth-visual > * {
    position: relative;
    z-index: 1;
}

.sz-auth-visual__eyebrow {
    align-self: flex-start;
    min-height: 29px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ff9c54;
    font-size: 0.6rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.sz-auth-visual h1 {
    max-width: 560px;
    margin: 20px 0 0;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.sz-auth-visual > p {
    max-width: 540px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.69);
    font-size: 0.82rem;
    line-height: 1.75;
}

.sz-auth-benefits {
    display: grid;
    gap: 13px;
    margin-top: 34px;
}

.sz-auth-benefits > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.045);
}

.sz-auth-benefits i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 107, 0, 0.16);
    color: #ff9c54;
}

.sz-auth-benefits span {
    color: rgba(255, 255, 255, 0.63);
    font-size: 0.61rem;
    line-height: 1.48;
}

.sz-auth-benefits strong {
    display: block;
    margin-bottom: 3px;
    color: #ffffff;
    font-size: 0.67rem;
}

.sz-auth-card {
    padding: 48px;
}

.sz-auth-card__heading > span {
    display: block;
    margin-bottom: 7px;
    color: var(--sz-primary, #ff6b00);
    font-size: 0.6rem;
    font-weight: 850;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.sz-auth-card__heading h2 {
    margin: 0;
    color: var(--sz-heading, #17191d);
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.sz-auth-card__heading p {
    margin: 8px 0 0;
    color: var(--sz-muted, #68707d);
    font-size: 0.69rem;
    line-height: 1.55;
}

.sz-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 18px;
    padding: 11px 12px;
    border-radius: 11px;
    font-size: 0.62rem;
    font-weight: 730;
    line-height: 1.5;
}

.sz-auth-alert--error {
    border: 1px solid #f0c5ca;
    background: #fff2f3;
    color: #b8323f;
}

.sz-auth-alert--success {
    border: 1px solid #bde3ca;
    background: #edf9f1;
    color: #197843;
}

.sz-auth-form {
    margin-top: 24px;
}

.sz-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.sz-auth-field {
    display: block;
    margin-bottom: 16px;
}

.sz-auth-grid .sz-auth-field {
    margin-bottom: 0;
}

.sz-auth-field--full {
    grid-column: 1 / -1;
}

.sz-auth-field > span {
    display: block;
    margin-bottom: 7px;
    color: var(--sz-heading, #17191d);
    font-size: 0.63rem;
    font-weight: 800;
}

.sz-auth-field > div {
    min-height: 46px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--sz-border, #e7e9ed);
    border-radius: 11px;
    background: #ffffff;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.sz-auth-field > div:focus-within {
    border-color: var(--sz-primary, #ff6b00);
    box-shadow:
        0 0 0 3px
        rgba(var(--sz-primary-rgb, 255, 107, 0), 0.11);
}

.sz-auth-field > div > i {
    color: #969da8;
    text-align: center;
}

.sz-auth-field input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 8px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--sz-heading, #17191d);
    font-size: 0.7rem;
}

.sz-auth-field input.is-invalid {
    color: #b8323f;
}

.sz-auth-field button {
    width: 40px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--sz-muted, #68707d);
}

.sz-auth-field > small,
.sz-auth-terms-error {
    display: block;
    margin-top: 6px;
    color: #b8323f;
    font-size: 0.56rem;
    font-weight: 700;
    line-height: 1.45;
}

.sz-auth-field__hint {
    color: var(--sz-muted, #68707d) !important;
    font-weight: 650 !important;
}

.sz-auth-form__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: -2px;
}

.sz-auth-form__options label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--sz-muted, #68707d);
    font-size: 0.6rem;
    font-weight: 700;
}

.sz-auth-form__options a {
    color: var(--sz-primary, #ff6b00);
    font-size: 0.6rem;
    font-weight: 800;
    text-decoration: none;
}

.sz-auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    cursor: pointer;
}

.sz-auth-terms input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sz-auth-terms > span {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sz-border, #e7e9ed);
    border-radius: 6px;
    background: #ffffff;
    color: transparent;
}

.sz-auth-terms input:checked + span {
    border-color: var(--sz-primary, #ff6b00);
    background: var(--sz-primary, #ff6b00);
    color: #ffffff;
}

.sz-auth-terms p {
    margin: 1px 0 0;
    color: var(--sz-muted, #68707d);
    font-size: 0.59rem;
    line-height: 1.55;
}

.sz-auth-submit {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 20px;
    border: 1px solid var(--sz-primary, #ff6b00);
    border-radius: 12px;
    background: var(--sz-primary, #ff6b00);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 850;
    box-shadow:
        0 10px 24px
        rgba(var(--sz-primary-rgb, 255, 107, 0), 0.24);
}

.sz-auth-submit:disabled {
    opacity: 0.65;
}

.sz-auth-switch {
    margin: 22px 0 0;
    color: var(--sz-muted, #68707d);
    font-size: 0.63rem;
    text-align: center;
}

.sz-auth-switch a {
    color: var(--sz-primary, #ff6b00);
    font-weight: 850;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .sz-auth-shell,
    .sz-auth-shell--register {
        grid-template-columns: 1fr;
    }

    .sz-auth-visual {
        padding: 38px;
    }
}

@media (max-width: 767.98px) {
    .sz-auth-page {
        padding: 28px 0 54px;
    }

    .sz-auth-grid {
        grid-template-columns: 1fr;
    }

    .sz-auth-field--full {
        grid-column: auto;
    }

    .sz-auth-card {
        padding: 30px 22px;
    }

    .sz-auth-visual {
        padding: 32px 22px;
    }
}

@media (max-width: 480px) {
    .sz-auth-form__options {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Phase 18M UI hotfix: premium secondary authentication action */
.sz-auth-card__footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--sz-border, #e7e9ed);
}

.sz-auth-card__footer a {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 18px;
    border: 1px solid rgba(var(--sz-primary-rgb, 255, 107, 0), 0.28);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fff8f2 100%);
    color: var(--sz-primary, #ff6b00);
    font-size: 0.7rem;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(20, 25, 35, 0.06);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.sz-auth-card__footer a::before {
    content: "\F12F";
    font-family: "bootstrap-icons";
    font-size: 0.92rem;
    line-height: 1;
}

.sz-auth-card__footer a:hover,
.sz-auth-card__footer a:focus-visible {
    border-color: var(--sz-primary, #ff6b00);
    background: #ffffff;
    color: var(--sz-primary, #ff6b00);
    box-shadow: 0 12px 28px rgba(var(--sz-primary-rgb, 255, 107, 0), 0.16);
    transform: translateY(-2px);
    outline: none;
}

.sz-auth-card__footer a:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .sz-auth-card__footer {
        margin-top: 20px;
        padding-top: 18px;
    }

    .sz-auth-card__footer a {
        min-height: 44px;
        padding-inline: 14px;
    }
}
