* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background: #f4f7f8;
    color: #17212b;
    font: 16px Arial, Helvetica, sans-serif;
}

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.auth-header {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 7vw, 110px);
    background: #ffffff;
    border-bottom: 1px solid #d8e0e3;
}

.auth-brand {
    color: #0d7166;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
}

.auth-header-link,
.auth-switch a {
    color: #0b665d;
    font-weight: 700;
    text-decoration: none;
}

.auth-header-link:hover,
.auth-switch a:hover {
    text-decoration: underline;
}

.auth-main {
    width: min(1040px, calc(100% - 40px));
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
    align-items: center;
    gap: clamp(36px, 9vw, 130px);
    padding: 42px 0;
}

.auth-intro {
    max-width: 520px;
}

.auth-eyebrow {
    margin: 0 0 14px;
    color: #0b665d;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-intro h1 {
    margin: 0;
    color: #17212b;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: 0;
}

.auth-intro > p:last-child {
    margin: 18px 0 0;
    color: #51606c;
    line-height: 1.6;
}

.auth-card {
    width: 100%;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #d8e0e3;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(31, 51, 61, .10);
}

.auth-card h2 {
    margin: 0 0 24px;
    font-size: 24px;
    letter-spacing: 0;
}

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

.auth-form label {
    display: grid;
    gap: 7px;
    color: #31404c;
    font-size: 14px;
    font-weight: 700;
}

.auth-form input,
.auth-form select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: #17212b;
    font: inherit;
    background: #ffffff;
    border: 1px solid #aebbc2;
    border-radius: 4px;
}

.auth-form input:focus,
.auth-form select:focus {
    border-color: #0b8175;
    outline: 3px solid rgba(11, 129, 117, .16);
}

.auth-form button {
    min-height: 44px;
    padding: 10px 16px;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    background: #0b766b;
    border: 1px solid #075f56;
    border-radius: 4px;
    cursor: pointer;
}

.auth-form button:hover {
    background: #075f56;
}

.error {
    min-height: 20px;
    margin: 15px 0 0;
    color: #bd1f3b;
    line-height: 1.4;
}

.auth-note,
.auth-switch {
    margin: 14px 0 0;
    color: #51606c;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .auth-header {
        min-height: 60px;
        padding: 0 20px;
    }

    .auth-main {
        width: min(100% - 32px, 480px);
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 34px 0;
    }

    .auth-intro h1 {
        font-size: 30px;
    }

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