:root {
    --navy: #101b2e;
    --muted: #344354;
    --border: #d9dee7;
    --green: #42861c;
    --green-hover: #367316;
    --panel: #e8f5e6;
    --teal: #177e93;
    --teal-soft: #a8d4d1;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(20, 32, 52, .08);
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--navy);
    background: #fff;
}

.page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(500px, 1fr);
}

.visual-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 56px 42px 70px;
    background: var(--panel);
    overflow: hidden;
}

.art {
    width: min(420px, 80%);
    margin-bottom: 24px;
}

.visual-panel h1 {
    margin: 0;
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.1;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 800;
    letter-spacing: -.4px;
}

.visual-panel p {
    margin: 14px 0 0;
    font-size: clamp(17px, 1.7vw, 24px);
    color: var(--muted);
    text-align: center;
}

.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 54px;
    background: #fff;
}

.login-card {
    width: min(520px, 100%);
}

.brand {
    margin: 0 0 30px;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.field {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 800;
}

input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    font-size: 16px;
    color: var(--navy);
    transition: border-color .2s, box-shadow .2s;
}

input::placeholder {
    color: #6e7582
}

input:focus {
    border-color: #7aa8c7;
    box-shadow: 0 0 0 4px rgba(73, 134, 175, .12);
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 58px;
}

.toggle-password {
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 0;
    border-left: 1px solid var(--border);
    border-radius: 0 8px 8px 0;
    background: transparent;
    cursor: pointer;
    color: #0d213c;
}

.toggle-password:hover {
    background: #f7f9fb
}

.captcha {
    width: min(310px, 100%);
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 24px 0 20px;
    padding: 12px 14px;
    border: 1px solid #cfd4da;
    border-radius: 3px;
    box-shadow: var(--shadow);
    background: #fafafa;
}

.captcha-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #202124;
}

.captcha-box {
    width: 28px;
    height: 28px;
    border: 2px solid #555;
    background: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.captcha-box.checked::after {
    content: "✓";
    color: #2f7a1b;
    font-weight: 900;
    font-size: 22px;
    line-height: 1;
}

.captcha-logo {
    width: 54px;
    text-align: center;
    font-size: 9px;
    color: #6b6b6b;
    line-height: 1.15;
}

.captcha-logo svg {
    width: 34px;
    height: 34px;
    display: block;
    margin: 0 auto 2px;
}

.login-btn {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--green);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(50, 113, 21, .18);
    transition: background .2s, transform .08s;
}

.login-btn:hover {
    background: var(--green-hover)
}

.login-btn:active {
    transform: translateY(1px)
}

.divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin: 52px 0 34px;
    font-size: 14px;
    font-weight: 800;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    background: #c9ccd1;
}

.google-btn {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
}

.google-btn:hover {
    background: #fafafa;
    box-shadow: var(--shadow);
}

.google-g {
    font-size: 22px;
    font-weight: 900;
    font-family: Arial, sans-serif;
    color: #4285f4;
    position: relative;
}

.message {
    min-height: 22px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    color: #b42318;
}

@media (max-width: 900px) {
    .page {
        grid-template-columns: 1fr;
    }

    .visual-panel {
        min-height: 380px;
        justify-content: center;
        padding: 44px 24px;
    }

    .art {
        width: min(300px, 72%);
        margin-bottom: 10px;
    }

    .form-panel {
        padding: 45px 24px 60px;
    }
}

@media (max-width: 520px) {
    .visual-panel {
        min-height: 330px;
    }

    .brand {
        font-size: 30px
    }

    .divider {
        margin: 38px 0 28px
    }
}