body.auth-page {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(244, 244, 244, 0.96)),
        linear-gradient(180deg, #f9f9f9 0%, #efefef 100%);
}

.page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}

.login-shell {
    width: min(100%, 540px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.card {
    width: min(430px, 100%);
    padding: 56px 34px 52px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(25, 36, 48, 0.14);
}

.logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 34px;
}

.logo-wrap img {
    width: 196px;
    height: auto;
}

.flash,
.field-error {
    border-radius: 8px;
    font-size: 13px;
}

.flash {
    margin-bottom: 14px;
    padding: 10px 12px;
}

.flash.error {
    background: #fff0ee;
    color: #a82419;
    border: 1px solid #ffd5cf;
}

.flash.success {
    background: #eef9f0;
    color: #22743a;
    border: 1px solid #ccefd5;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: #858585;
    font-size: 14px;
    font-weight: 500;
}

.field input {
    width: 100%;
    height: 46px;
    border: 1px solid #dbe4fb;
    border-radius: 9px;
    background: #eef3ff;
    padding: 0 14px;
    font-size: 14px;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
    border-color: rgba(219, 45, 29, 0.38);
    box-shadow: 0 0 0 3px rgba(219, 45, 29, 0.12);
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 52px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #8c8c8c;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eye-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.eye-closed {
    display: none;
}

.toggle-password.is-visible .eye-open {
    display: none;
}

.toggle-password.is-visible .eye-closed {
    display: block;
}

.field-error {
    color: #c02b1d;
    margin-top: 6px;
    padding: 0 2px;
}

.signin-btn {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 9px;
    background: var(--color-accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 12px 20px rgba(219, 45, 29, 0.16);
}

.signin-btn:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.signin-btn:active {
    transform: translateY(0);
}

.support-copy {
    width: min(100%, 410px);
    margin: 0;
    text-align: left;
    color: #6a6a6a;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .page {
        padding: 24px 16px;
    }

    .card {
        width: 100%;
        padding: 34px 20px 30px;
    }

    .support-copy {
        width: 100%;
        font-size: 12px;
    }
}
