html {
    min-height: 100%;
    font-size: 16px;
}

body {
    position: relative;
    display: grid;
    min-height: 100vh;
    margin: 0;
    padding: 32px 20px;
    color: #172c35;
    background: #f2f7f6;
    font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-sizing: border-box;
}

body::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    background:
        radial-gradient(ellipse at 14% 12%, rgba(20, 145, 124, 0.12), transparent 34%),
        radial-gradient(ellipse at 90% 84%, rgba(41, 105, 127, 0.09), transparent 32%);
    content: "";
    pointer-events: none;
}

.auth-page {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    margin: auto;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 26px 4px;
}

.auth-mark {
    display: grid;
    width: 44px;
    height: 44px;
    color: #fff;
    background: linear-gradient(145deg, #13836f, #0c5c58);
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(12, 92, 88, 0.2);
    font-size: 23px;
    font-weight: 750;
    line-height: 1;
    place-items: center;
}

.auth-brand-copy {
    display: grid;
    gap: 1px;
}

.auth-brand-name {
    color: #19343a;
    font-size: 17px;
    font-weight: 720;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.auth-brand-product {
    color: #75878b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.auth-card {
    padding: 38px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e0e9e7;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(27, 55, 59, 0.11), 0 3px 10px rgba(27, 55, 59, 0.04);
}

.auth-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #58817a;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.13em;
}

.auth-eyebrow span {
    width: 7px;
    height: 7px;
    background: #18a184;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(24, 161, 132, 0.1);
}

.auth-title {
    margin: 0;
    color: #172c35;
    font-size: clamp(28px, 7vw, 34px);
    font-weight: 680;
    letter-spacing: -0.045em;
    line-height: 1.16;
}

.auth-description {
    margin: 10px 0 28px;
    color: #6b7d81;
    font-size: 14px;
    line-height: 1.6;
}

.auth-error {
    display: grid;
    gap: 3px;
    margin: 0 0 20px;
    padding: 12px 14px;
    color: #853c37;
    background: #fff3f1;
    border: 1px solid #f1d2ce;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
}

.auth-error strong {
    font-weight: 700;
}

.auth-error span {
    color: #9a625d;
}

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

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    color: #30474d;
    font-size: 13px;
    font-weight: 650;
}

.auth-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: #1a3036;
    background: #fbfdfd;
    border: 1px solid #d7e2e0;
    border-radius: 10px;
    box-sizing: border-box;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.auth-field input::placeholder {
    color: #9aa9a9;
}

.auth-field input:hover {
    border-color: #b6c9c5;
}

.auth-field input:focus {
    background: #fff;
    border-color: #168b78;
    box-shadow: 0 0 0 4px rgba(22, 139, 120, 0.13);
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    margin-top: 4px;
    padding: 0 17px;
    color: #fff;
    background: linear-gradient(135deg, #13836f, #0c675f);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(12, 103, 95, 0.18);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 680;
    transition: filter 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.auth-submit:hover {
    filter: brightness(1.04);
    box-shadow: 0 11px 20px rgba(12, 103, 95, 0.22);
    transform: translateY(-1px);
}

.auth-submit:focus-visible {
    outline: 3px solid rgba(22, 139, 120, 0.35);
    outline-offset: 3px;
}

.auth-submit span {
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 22px 0 0;
    color: #728588;
    font-size: 11px;
    letter-spacing: 0.01em;
}

.auth-secure-dot {
    width: 7px;
    height: 7px;
    background: #24a27f;
    border-radius: 50%;
}

@media (max-width: 520px) {
    body {
        padding: 24px 16px;
    }

    .auth-card {
        padding: 30px 24px;
        border-radius: 17px;
    }

    .auth-brand {
        margin-bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
