:root {
    --ink: #14181f;
    --ink-soft: #4b5563;
    --navy: #0f2340;
    --navy-soft: #1c2f56;
    --orange: #f2660d;
    --orange-dark: #d9560a;
    --border: #e5e7eb;
    --cream: #f4efe6;
    --radius: 14px;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.reg-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 380px 1fr;
}

/* Left brand panel */
.reg-side {
    background: var(--navy);
    color: #fff;
    padding: 48px 40px;
}

.reg-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    margin-bottom: 48px;
}

.reg-brand .reg-logo {
    display: block;
    width: 84px;
    height: auto;
    object-fit: contain;
}

.reg-brand .sub {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.reg-side h1 {
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 18px;
    font-family: var(--font-serif);
}

.reg-side h1 em {
    font-style: italic;
}

.reg-side-copy {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 40px;
}

.reg-perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.reg-perks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.reg-perks .check {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.reg-perks strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.reg-perks small {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12.5px;
    line-height: 1.5;
}

/* Right form panel */
.reg-main {
    background: var(--cream);
    display: flex;
    justify-content: center;
    padding: 56px 40px 80px;
}

.reg-form-col {
    width: 100%;
    max-width: 620px;
}

.reg-form-col h2 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 30px;
    margin: 0 0 10px;
    color: var(--navy);
}

.reg-sub {
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 32px;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11.5px;
    font-weight: 700;
    color: #9a8f7d;
    margin: 32px 0 16px;
}

.field {
    margin-bottom: 18px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field-row-phone {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
}

label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 7px;
    color: var(--navy);
}

.field-label-plain {
    font-size: 14px;
    margin-bottom: 12px;
}

.req {
    color: var(--orange);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    outline: none;
    font-family: inherit;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23374151' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

input:focus,
select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(242, 102, 13, 0.12);
}

.field.has-error input,
.field.has-error select {
    border-color: #dc2626;
}

.field.has-error input:focus,
.field.has-error select:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 42px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    font-size: 15px;
    opacity: 0.6;
}

.hint {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    margin-top: 6px;
}

.error {
    display: block;
    color: #dc2626;
    font-size: 12px;
    margin-top: 6px;
}

.error:empty {
    display: none;
    margin: 0;
}

.account-type-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
}

.account-type-card {
    position: relative;
    display: block;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    background: #fff;
}

.account-type-card input {
    position: absolute;
    opacity: 0;
}

.account-type-card strong {
    display: block;
    font-size: 14.5px;
    margin-bottom: 4px;
    color: var(--navy);
}

.account-type-card small {
    display: block;
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.5;
}

.account-type-card .check-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 11px;
    display: none;
    align-items: center;
    justify-content: center;
}

.account-type-card:has(input:checked) {
    border-color: var(--navy);
    background: #eeece7;
}

.account-type-card:has(input:checked) .check-badge {
    display: flex;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--ink-soft);
    font-weight: 400;
    margin-bottom: 14px;
    cursor: pointer;
}

.checkbox-row + .error:not(:empty) {
    margin-top: -8px;
    margin-bottom: 10px;
}

.checkbox-row input {
    margin-top: 3px;
    flex: none;
    width: 17px;
    height: 17px;
    accent-color: var(--orange);
    cursor: pointer;
}

.checkbox-row a {
    color: var(--navy);
    font-weight: 700;
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--orange-dark);
}

.switch {
    text-align: center;
    font-size: 13.5px;
    color: var(--ink-soft);
    margin: 22px 0 0;
}

.switch a {
    color: var(--navy);
    font-weight: 700;
    text-decoration: underline;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

@media (max-width: 1100px) {
    .reg-wrap {
        grid-template-columns: 320px 1fr;
    }

    .reg-side {
        padding: 40px 28px;
    }
}

@media (max-width: 900px) {
    .reg-wrap {
        grid-template-columns: 1fr;
    }

    .reg-side {
        padding: 32px 24px;
    }

    .reg-side h1 {
        font-size: 26px;
    }

    .reg-perks {
        gap: 18px;
    }

    .reg-main {
        padding: 40px 20px 60px;
    }

    .field-row,
    .field-row-phone,
    .account-type-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .reg-side {
        padding: 28px 20px;
    }

    .reg-side h1 {
        font-size: 23px;
        margin-bottom: 12px;
    }

    .reg-side-copy {
        margin-bottom: 28px;
        font-size: 13.5px;
    }

    .reg-brand {
        margin-bottom: 32px;
    }

    .reg-main {
        padding: 32px 16px 48px;
    }

    .reg-form-col h2 {
        font-size: 24px;
    }

    .reg-sub {
        font-size: 13.5px;
        margin-bottom: 26px;
    }

    .section-label {
        margin: 26px 0 12px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="tel"],
    select {
        padding: 11px 12px;
        font-size: 13.5px;
    }

    .account-type-card {
        padding: 14px 16px;
    }

    .btn-submit {
        padding: 14px;
        font-size: 14.5px;
    }

    .checkbox-row {
        font-size: 13px;
    }
}
