.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
    background:
        radial-gradient(circle at top left, rgba(217, 90, 43, 0.08), transparent 30%),
        #f8f1ea;
}

.auth-card {
    width: min(100%, 560px);
    background: #fff;
    border: 1px solid #ead9cf;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(90, 58, 36, 0.08);
    padding: 32px;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-logo img {
    height: 120px;
    width: auto;
}

.auth-title {
    margin: 0;
    text-align: center;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 900;
    color: #181311;
}

.auth-subtitle {
    margin: 12px auto 0;
    text-align: center;
    max-width: 420px;
    color: #6a5c55;
    font-size: 16px;
    line-height: 1.7;
}

.auth-success {
    margin: 22px 0 0;
    padding: 16px 18px;
    border-radius: 18px;
    background: #f3fff6;
    border: 1px solid #cfe9d6;
    color: #2f6a3b;
    font-weight: 700;
}

.auth-errors {
    margin: 22px 0 0;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff2ee;
    border: 1px solid #f0c7b9;
    color: #8d3f24;
}

.auth-errors ul {
    margin: 0;
    padding-left: 18px;
}

.auth-form {
    margin-top: 24px;
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.form-row {
    display: grid;
    gap: 8px;
    align-content: start;
}

.form-row label {
    font-size: 14px;
    font-weight: 800;
    color: #3f302a;
}

.form-row input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #e5d4c9;
    background: #fffdfa;
    color: #181311;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-row input:focus {
    border-color: #d95a2b;
    box-shadow: 0 0 0 4px rgba(217, 90, 43, 0.10);
}

.helper-text {
    min-height: 36px;
    font-size: 12px;
    color: #85746b;
    line-height: 1.5;
}

.helper-text-blank {
    visibility: hidden;
}

.auth-submit {
    width: 100%;
    margin-top: 8px;
    border: none;
    cursor: pointer;
}

.auth-footer {
    margin-top: 22px;
    text-align: center;
    color: #6f615a;
    font-size: 14px;
}

.auth-footer a {
    color: #d95a2b;
    font-weight: 800;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    font-size: 13px;
}

.auth-links a {
    color: #d95a2b;
    font-weight: 700;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .auth-logo img {
        height: 90px;
    }

    .auth-title {
        font-size: 30px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .helper-text {
        min-height: auto;
    }

    .helper-text-blank {
        display: none;
    }

    .auth-links {
        flex-direction: column;
        align-items: flex-start;
    }
}