/* Ściepka 0.8 — logowanie / rejestracja */

.sc-auth-page {
    --auth-text: #171717;
    --auth-muted: #747880;
    --auth-border: #e8e9ed;
    --auth-accent: #ff3557;
    --auth-accent2: #ff7a5e;
    min-height: calc(100vh - 66px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 54px 16px;
    background:
        radial-gradient(circle at 20% 0%, rgba(255,122,94,.10), transparent 33%),
        radial-gradient(circle at 90% 85%, rgba(255,53,87,.08), transparent 32%),
        #fafafa;
}

.sc-auth-card {
    width: min(470px, 100%);
    padding: 34px;
    border: 1px solid var(--auth-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(23,23,23,.08);
}

.sc-auth-card--register {
    width: min(620px, 100%);
}

.sc-auth-kicker {
    color: var(--auth-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
}

.sc-auth-card h1 {
    margin: 7px 0 8px;
    color: var(--auth-text);
    font-size: 38px;
    line-height: 1.06;
    letter-spacing: -.04em;
}

.sc-auth-lead {
    margin: 0 0 25px;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.55;
}

.sc-auth-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(255,53,87,.22);
    border-radius: 12px;
    background: rgba(255,53,87,.06);
    color: #ba1834;
    font-size: 12px;
    line-height: 1.45;
}

.sc-auth-form {
    display: grid;
    gap: 15px;
}

.sc-auth-form label > span {
    display: block;
    margin-bottom: 7px;
    color: var(--auth-text);
    font-size: 12px;
    font-weight: 650;
}

.sc-auth-form input[type="text"],
.sc-auth-form input[type="email"],
.sc-auth-form input[type="password"] {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--auth-text);
    font: inherit;
    font-size: 14px;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.sc-auth-form input:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(255,53,87,.08);
}

.sc-auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-muted);
    font-size: 12px;
}

.sc-auth-check span {
    margin: 0 !important;
    color: var(--auth-muted) !important;
    font-weight: 500 !important;
}

.sc-auth-submit {
    min-height: 52px;
    border: 0 !important;
    border-radius: 13px;
    background:
        linear-gradient(
            135deg,
            var(--auth-accent),
            var(--auth-accent2)
        ) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255,53,87,.19);
    transition: transform .18s ease, box-shadow .18s ease;
}

.sc-auth-submit:hover {
    transform: translateY(-2px);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: 0 14px 30px rgba(255,53,87,.27);
}

.sc-auth-switch {
    margin: 22px 0 0;
    color: var(--auth-muted);
    font-size: 12px;
    text-align: center;
}

.sc-auth-switch a {
    color: var(--auth-text) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.sc-auth-switch a:hover {
    color: var(--auth-accent) !important;
}

.sc-auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sc-auth-handle-field {
    min-height: 50px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    background: #fff;
}

.sc-auth-handle-field > span {
    margin: 0 !important;
    padding-left: 14px;
    color: var(--auth-muted) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.sc-auth-handle-field input {
    min-width: 0;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 600px) {
    .sc-auth-card {
        padding: 25px 20px;
    }

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