﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f2f2f2;
    --white: #ffffff;
    --border: #d9d9d9;
    --placeholder: #b0b0b0;
    --label: #333333;
    --body-text: #444444;
    --btn-from: #B2E1E6;
    --btn-mid: #5894C5;
    --btn-to: #7B78A6;
    --radius: 6px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--label);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── MAIN ── */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 40px 20px 40px;
}

/* ── HEADER ── */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    height: 64px;
    width: 100%;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 38px;
    display: block;
}

.site-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--label);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: var(--radius);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .2s;
}

.site-link:hover {
    border-color: var(--btn-mid);
}

.card {
    background: transparent;
    width: 100%;
    max-width: 570px;
    border: 0px;
}

h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

.page-subtitle {
    font-size: 14px;
    color: #000;
    margin-bottom: 28px;
}

.field-hint {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

/* ── FORM ── */
.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

label.field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: var(--label);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

input::placeholder {
    color: var(--placeholder);
}

input:focus {
    border-color: var(--btn-mid);
    box-shadow: 0 0 0 3px rgba(88,148,197,.12);
}

/* ── CAPTCHA ROW ── */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-img {
    width: 160px;
    height: 52px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Simulated CAPTCHA */
.captcha-img canvas {
    display: block;
 }

.captcha-refresh {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color .2s, transform .3s;
}

.captcha-refresh:hover {
    border-color: var(--btn-mid);
}

.captcha-refresh:active {
    transform: rotate(180deg);
}

.captcha-refresh svg {
    width: 18px;
    height: 18px;
    color: #555;
}

.captcha-input {
    flex: 1;
}

/* ── BUTTON ── */
.btn-submit {
    display: block;
    width: 100%;
    height: 56px;
    margin-top: 28px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--btn-from) 0%, var(--btn-mid) 49%, var(--btn-to) 100%);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
}

.btn-submit:hover {
    opacity: .9;
}

.btn-submit:active {
    transform: scale(.99);
}

/* ── INFO SECTION ── */
.info-section {
    margin-top: 52px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

    .info-section h2 {
        font-size: 15px;
        font-weight: 600;
        color: #222;
        margin-bottom: 12px;
    }

    .info-section p {
        font-size: 12px;
        line-height: 1.4;
        color: var(--body-text);
    }

/* ── FOOTER ── */
footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    width: 100%;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 120px;
}

    .footer-inner img {
        height: 28px;
        display: block;
        object-fit: contain;
    }

/* ── MOBILE ── */
@media (max-width: 600px) {
    header {
        height: 56px;
    }

    .header-inner {
        padding: 0 16px;
    }

    .logo img {
        height: 32px;
    }

    main {
        padding: 32px 16px 60px;
    }

    h1 {
        font-size: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .captcha-wrapper {
        flex-wrap: nowrap;
    }

    .captcha-img {
        width: 140px;
    }

    .footer-inner {
        padding: 0 16px;
        gap: 20px;
    }

        .footer-inner img {
            height: 22px;
        }
