:root {
    --primary: #153f59;
    --primary-dark: #0b2e43;
    --green: #23766f;
    --text: #202d34;
    --muted: #6f7b82;
    --line: #dbe4e7;
    --soft: #f5f8f9;
    --white: #ffffff;
    --danger: #a53f3f;
    --success: #24735d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
}

.auth-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 48px 8vw 45px 6vw;
    color: var(--white);
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.10), transparent 28%),
        linear-gradient(135deg, #0d3b52 0%, #12566a 55%, #1d6d68 100%);
}

.auth-intro::after {
    position: absolute;
    right: -160px;
    bottom: -210px;
    width: 520px;
    height: 520px;
    content: "";
    border: 80px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
}

.brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
}

.brand img {
    width: 47px;
    height: 47px;
}

.brand span {
    display: flex;
    flex-direction: column;
}

.brand strong {
    font-size: 1rem;
}

.brand small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.68rem;
}

.intro-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    padding-block: 70px;
}

.overline,
.form-heading > span {
    color: #bcebe4;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.14em;
}

.intro-content h1 {
    margin: 15px 0 20px;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    line-height: 1.07;
    letter-spacing: -0.05em;
}

.intro-content p {
    max-width: 590px;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.96rem;
    line-height: 1.85;
}

.back-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
    font-weight: 700;
}

.auth-form-section {
    display: grid;
    place-items: center;
    padding: 55px 40px;
    background: var(--white);
}

.form-wrapper {
    width: min(430px, 100%);
}

.mobile-brand {
    display: none;
}

.form-heading > span {
    color: var(--green);
}

.form-heading h2 {
    margin: 10px 0 7px;
    color: var(--primary-dark);
    font-size: 2rem;
    letter-spacing: -0.035em;
}

.form-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.alert {
    margin-top: 24px;
    padding: 12px 14px;
    border-radius: 7px;
    font-size: 0.78rem;
}

.alert-error {
    color: #833434;
    background: #fff1f1;
    border: 1px solid #efd0d0;
}

.alert-success {
    color: #205f4d;
    background: #edf8f4;
    border: 1px solid #c9e6dc;
}

.login-form {
    margin-top: 31px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    color: #36474f;
    font-size: 0.78rem;
    font-weight: 750;
}

.field > input,
.password-field {
    width: 100%;
    min-height: 51px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.field > input,
.password-field input {
    padding: 0 14px;
    color: var(--text);
    outline: none;
}

.field > input:focus,
.password-field:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(35, 118, 111, 0.08);
}

.password-field {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    overflow: hidden;
}

.password-field input {
    min-width: 0;
    height: 49px;
    border: 0;
    background: transparent;
}

.password-field button {
    height: 36px;
    margin-right: 7px;
    padding: 0 9px;
    color: var(--primary);
    cursor: pointer;
    background: var(--soft);
    border: 0;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 750;
}

.remember-option {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.75rem;
}

.remember-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--green);
}

.submit-button {
    width: 100%;
    min-height: 51px;
    margin-top: 24px;
    color: var(--white);
    cursor: pointer;
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    font-weight: 800;
}

.submit-button:hover {
    background: var(--primary-dark);
}

.form-note {
    margin: 24px 0 0;
    padding-top: 20px;
    color: #8a969c;
    border-top: 1px solid var(--line);
    font-size: 0.71rem;
    line-height: 1.65;
}

@media (max-width: 860px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-intro {
        display: none;
    }

    .auth-form-section {
        min-height: 100vh;
        padding: 42px 24px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 52px;
        color: var(--primary-dark);
    }

    .mobile-brand img {
        width: 42px;
        height: 42px;
    }

    .form-heading h2 {
        font-size: 1.8rem;
    }
}
