:root {
    --navy: #092247;
    --muted: #596579;
    --line: rgba(9, 34, 71, .16);
    --line-strong: rgba(9, 34, 71, .22);
    --primary: #063bdc;
    --primary-dark: #032fbd;
    --card: rgba(255, 255, 255, .96);
    --shadow: 0 24px 70px rgba(9, 34, 71, .16);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--navy);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: url('/images/login.png') center center / cover no-repeat fixed;
}

.register-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(520px, 1.08fr) minmax(430px, 560px);
    align-items: start;
    gap: 74px;
    padding: 80px 170px 60px 330px;
    position: relative;
}
.register-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.42) 41%, rgba(255,255,255,.10) 73%, rgba(255,255,255,.02) 100%),
        radial-gradient(circle at 43% 42%, rgba(255,255,255,.40), transparent 31%);
    pointer-events: none;
}

.register-left,
.register-card-wrap { position: relative; z-index: 1; }

.register-left {
    min-height: 640px;
    display: flex;
    align-items: flex-start;
    padding-top: 90px;
}

.brand-copy { width: 100%; max-width: 560px; }

.brand-logo {
    width: 405px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 78px;
}

.brand-copy h1 {
    margin: 0 0 22px;
    font-size: 44px;
    line-height: 1.18;
    letter-spacing: -.035em;
    font-weight: 900;
    color: var(--navy);
}

.brand-copy p {
    margin: 0;
    color: #425064;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 500;
}

.category-row {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-top: 31px;
}

.category-item {
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
}

.category-icon {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.92);
    box-shadow: 0 16px 32px rgba(9,34,71,.08);
    font-size: 30px;
}

.category-icon.purple { color: #6533ff; }
.category-icon.blue { color: #0574ff; }
.category-icon.green { color: #63bf86; }
.category-icon.orange { color: #ff7b13; }
.category-icon.pink { color: #ff3d77; }

.register-card-wrap { display: flex; justify-content: center; }

.register-card {
    width: 100%;
    max-width: 548px;
    min-height: 868px;
    padding: 38px 32px 33px;
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,.72);
}

.card-header { text-align: center; margin-bottom: 31px; }
.card-icon { width: 110px; height: 110px; object-fit: contain; display: block; margin: 0 auto 20px; }
.card-header h2 { margin: 0 0 13px; color: var(--navy); font-size: 28px; line-height: 1.1; font-weight: 900; letter-spacing: -.025em; }
.card-header p { margin: 0; color: #6c7280; font-size: 14px; font-weight: 500; }

.auth-alert,
.validation-summary-errors {
    margin: 0 0 14px;
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 800;
}
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }

.register-form { display: flex; flex-direction: column; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-label { color: var(--navy); font-size: 13px; font-weight: 800; }

.input-wrap {
    height: 49px;
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(255,255,255,.92);
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.input-wrap:focus-within { border-color: rgba(6,59,220,.48); box-shadow: 0 0 0 4px rgba(6,59,220,.11); }
.input-wrap > i { color: #7d8797; font-size: 17px; width: 20px; text-align: center; }
.input-wrap input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #071d3d; font-size: 14px; font-weight: 600; }
.input-wrap input::placeholder { color: #6f7787; font-weight: 500; }
.input-wrap .password-eye { margin-left: auto; cursor: pointer; }
.form-field small { margin-top: -2px; color: #697384; font-size: 12px; font-weight: 600; }
.field-validation-error { color: #dc2626; font-size: 12px; font-weight: 800; }

.terms-row { display: flex; align-items: center; gap: 10px; margin-top: -2px; color: #1e2f4f; font-size: 12px; font-weight: 600; }
.terms-row input { width: 14px; height: 14px; margin: 0; accent-color: var(--primary); }
a { color: #003cdb; text-decoration: none; font-weight: 800; }
a:hover { text-decoration: underline; }

.primary-button {
    height: 43px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(180deg, #063fec, #0531c7);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(6,59,220,.22);
}
.primary-button:hover { background: linear-gradient(180deg, #0739d5, #032bac); }

.divider { display: flex; align-items: center; gap: 18px; margin: 21px 0 4px; color: #687183; font-size: 13px; font-weight: 600; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: rgba(9,34,71,.18); }

.social-stack { display: flex; flex-direction: column; gap: 12px; }
.social-button { height: 45px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.84); display: flex; align-items: center; justify-content: center; gap: 17px; color: var(--navy); font-size: 14px; font-weight: 800; cursor: pointer; }
.social-button:hover { background: #fff; border-color: rgba(9,34,71,.30); }
.social-button i { font-size: 21px; width: 22px; text-align: center; }
.google { color: #ea4335; }
.facebook { color: #1877f2; }
.apple { color: #000; }

.switch-auth { margin: 19px 0 0; text-align: center; color: #596579; font-size: 14px; font-weight: 500; }

@media (max-width: 1500px) {
    .register-page { padding-left: 210px; padding-right: 130px; gap: 58px; }
}

@media (max-width: 1280px) {
    .register-page { grid-template-columns: 1fr; padding: 32px 20px; gap: 24px; }
    .register-left { min-height: auto; justify-content: center; text-align: center; padding-top: 16px; }
    .brand-logo { margin: 0 auto 28px; width: 340px; }
    .brand-copy h1 { font-size: 36px; }
    .brand-copy p { font-size: 17px; }
    .category-row { justify-content: center; flex-wrap: wrap; }
    .register-card { min-height: auto; }
}

@media (max-width: 640px) {
    body { background-attachment: scroll; }
    .register-page { padding: 18px 14px 24px; }
    .register-left { display: none; }
    .register-card { border-radius: 20px; padding: 26px 18px 24px; }
    .card-icon { width: 86px; height: 86px; }
    .card-header h2 { font-size: 24px; }
}
.turnstile-wrap {
    display: flex;
    justify-content: center;
    margin: -2px 0 0;
}