* {
    box-sizing: border-box;
}

body.auth-page {
    min-height: 100vh;
    margin: 0;
    padding: 32px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(17, 86, 56, 0.08), rgba(227, 241, 232, 0.72)),
        #f6f8f5;
    color: #17261f;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.auth-shell {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    width: 100%;
    padding: 34px;
    border: 1px solid #dbe6dd;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(22, 48, 35, 0.13);
}

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-logo {
    max-width: 168px;
    max-height: 86px;
    object-fit: contain;
}

.auth-title {
    margin: 0 0 8px;
    color: #062b1c;
    font-size: 28px;
    line-height: 1.18;
    font-weight: 750;
    text-align: center;
}

.auth-copy {
    margin: 0 0 26px;
    color: #5d6a63;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.auth-alert {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 6px;
    background: #fff4f0;
    border: 1px solid #ffd4c6;
    color: #a2331f;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.auth-alert.success {
    background: #eefaf2;
    border-color: #c6ecd2;
    color: #17643b;
}

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

.auth-field label {
    display: block;
    margin-bottom: 7px;
    color: #2b3a32;
    font-size: 13px;
    font-weight: 700;
}

.auth-field input {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #cfdcd3;
    border-radius: 6px;
    background: #fbfdfb;
    color: #17261f;
    font: inherit;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.auth-field input:focus {
    border-color: #11633e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(17, 99, 62, 0.13);
}

.auth-button {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 6px;
    background: #0e5d39;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.auth-button:hover {
    background: #0a4d2f;
    box-shadow: 0 10px 24px rgba(14, 93, 57, 0.22);
    transform: translateY(-1px);
}

.auth-links {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    color: #64736b;
    font-size: 14px;
    text-align: center;
}

.auth-links p {
    margin: 0;
}

.auth-links a {
    color: #0e5d39;
    font-weight: 750;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 520px) {
    body.auth-page {
        padding: 18px 12px;
        align-items: flex-start;
    }

    .auth-card {
        padding: 26px 20px;
    }

    .auth-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .auth-title {
        font-size: 24px;
    }
}
