:root {
    --vn-green: #66c72f;
    --vn-green-deep: #23934b;
    --vn-text: #102018;
    --vn-muted: #6a776f;
    --vn-border: rgba(34, 75, 49, .15);
}

* { box-sizing: border-box; }

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

body.candidate-hero-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    color: var(--vn-text);
    background:
        linear-gradient(90deg, rgba(2, 9, 7, .12) 0%, rgba(2, 9, 7, .16) 46%, rgba(2, 9, 7, .48) 100%),
        url("../images/candidate-register-bg.webp") center top / cover no-repeat fixed;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.candidate-hero-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 48%, rgba(0, 0, 0, .04), rgba(0, 0, 0, .28) 76%),
        linear-gradient(180deg, rgba(3, 10, 8, .04), rgba(3, 10, 8, .20));
}

.candidate-hero-topbar {
    position: relative;
    z-index: 2;
    width: min(1480px, calc(100% - 64px));
    margin: 0 auto;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
}

.candidate-hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -.02em;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

.candidate-brand-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,.22));
}

.candidate-hero-auth-link {
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 2px 14px rgba(0,0,0,.45);
}

.candidate-hero-auth-link a {
    color: #a6ef75;
    text-decoration: none;
    margin-left: 4px;
}

.candidate-login-stage {
    position: relative;
    z-index: 1;
    width: min(1480px, calc(100% - 64px));
    min-height: calc(100dvh - 84px);
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 28px 28px 72px;
}

.candidate-login-card {
    width: min(500px, 100%);
    padding: 42px 38px 36px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,.70);
    background: rgba(248, 250, 249, .94);
    box-shadow: 0 28px 80px rgba(0,0,0,.28);
    backdrop-filter: blur(18px) saturate(115%);
    -webkit-backdrop-filter: blur(18px) saturate(115%);
}

.candidate-login-kicker {
    margin-bottom: 10px;
    color: #4c982c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.candidate-login-card h1 {
    margin: 0;
    color: #15211a;
    font-size: clamp(34px, 3.2vw, 48px);
    line-height: 1;
    letter-spacing: -.05em;
}

.candidate-login-copy {
    margin: 14px 0 26px;
    color: var(--vn-muted);
    font-size: 15px;
    line-height: 1.55;
}

.candidate-login-card form {
    display: grid;
    gap: 18px;
}

.candidate-login-card label {
    display: grid;
    gap: 8px;
    color: #28362e;
    font-size: 13px;
    font-weight: 800;
}

.candidate-login-card input {
    width: 100%;
    height: 52px;
    border: 1px solid #d4ddd7;
    border-radius: 13px;
    padding: 0 15px;
    background: rgba(255,255,255,.92);
    color: #15211a;
    font: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.candidate-login-card input:focus {
    border-color: #72c943;
    box-shadow: 0 0 0 4px rgba(102,199,47,.12);
    background: #fff;
}

.candidate-login-card .password-field {
    position: relative;
}

.candidate-login-card .password-field input { padding-right: 78px; }

.candidate-login-card .toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 58px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #e8f6e4;
    color: #218444;
    font-weight: 800;
    cursor: pointer;
}

.candidate-login-card .btn.primary.full {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 13px;
    margin-top: 2px;
    color: #fff;
    background: linear-gradient(135deg, #6cca32, #2ca95f);
    box-shadow: 0 14px 30px rgba(57, 163, 72, .24);
    font-weight: 900;
    cursor: pointer;
}

.candidate-login-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0e6e2;
    color: #738078;
    font-size: 11px;
}

.candidate-secure-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #57b52f;
    box-shadow: 0 0 0 5px rgba(87,181,47,.10);
}

@media (max-width: 900px) {
    body.candidate-hero-page {
        background-position: 42% top;
        background-attachment: scroll;
    }

    .candidate-hero-topbar,
    .candidate-login-stage {
        width: min(100% - 32px, 720px);
    }

    .candidate-login-stage {
        justify-content: center;
        padding: 28px 0 56px;
    }

    .candidate-login-card {
        width: min(520px, 100%);
        background: rgba(248,250,249,.96);
    }
}

@media (max-width: 560px) {
    .candidate-hero-topbar {
        min-height: 72px;
        width: calc(100% - 24px);
    }

    .candidate-hero-brand span { font-size: 14px; }
    .candidate-brand-icon { width: 34px; height: 34px; }
    .candidate-hero-auth-link { font-size: 11px; }

    .candidate-login-stage {
        width: calc(100% - 24px);
        min-height: calc(100dvh - 72px);
        padding: 20px 0 28px;
    }

    .candidate-login-card {
        padding: 30px 22px 26px;
        border-radius: 24px;
    }
}
