
:root {
    --green: #174b3b;
    --green-dark: #10392d;
    --gold: #c6a66b;
    --cream: #f8f6f0;
    --ink: #202922;
    --muted: #737b75;
    --line: #e4e8e2;
    --white: #ffffff;
    --danger: #a83232;
    --success: #187348;
    --shadow: 0 24px 70px rgba(24, 48, 36, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 5% 10%, #e9efe7 0, transparent 30%),
        #f8f9f6;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--green);
}

.register-page {
    min-height: 100vh;
    padding: 48px 24px 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-shell {
    width: 100%;
    max-width: 1160px;
    min-height: 700px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
    overflow: hidden;
    border: 1px solid rgba(222, 228, 219, .9);
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.register-main {
    min-width: 0;
    padding: 48px clamp(25px, 5vw, 66px);
}

.brand-name {
    display: inline-block;
    margin-bottom: 35px;
    color: var(--green);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    text-decoration: none;
}

.brand-name span {
    color: var(--gold);
}

.eyebrow,
.side-eyebrow {
    margin: 0 0 10px;
    color: #a18145;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.7px;
}

.register-main h1 {
    margin: 0;
    color: #172b21;
    font-size: clamp(30px, 3vw, 39px);
    line-height: 1.18;
    letter-spacing: -1.3px;
}

.subtitle {
    max-width: 440px;
    margin: 13px 0 25px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.progress-line {
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 20px;
    background: #edf0eb;
}

.progress-line span {
    display: block;
    width: 33.33%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), #7a9a79);
    transition: width .35s ease;
}

.step-caption {
    margin: 10px 0 23px;
    color: #737b75;
    font-size: 11px;
    font-weight: 700;
}

.form-message {
    display: none;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.55;
}

.form-message.show {
    display: block;
}

.form-message.info {
    color: #335b73;
    border-color: #d9e8f1;
    background: #f1f8fc;
}

.form-message.success {
    color: #176343;
    border-color: #cbe8d8;
    background: #effaf3;
}

.form-message.error {
    color: #923434;
    border-color: #f0d2d2;
    background: #fff4f3;
}

.field {
    min-width: 0;
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: #28362d;
    font-size: 12px;
    font-weight: 750;
}

.field input,
.field select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    outline: none;
    color: #24352b;
    border: 1px solid #dfe5de;
    border-radius: 10px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.field input::placeholder {
    color: #a0a8a1;
}

.field input:focus,
.field select:focus {
    border-color: #67917b;
    box-shadow: 0 0 0 3px rgba(55, 111, 81, .10);
}

.field input:read-only {
    color: #5e7164;
    background: #f4f7f3;
}

.otp-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.secondary-button {
    min-height: 46px;
    padding: 0 15px;
    color: var(--green);
    border: 1px solid #c8d7cc;
    border-radius: 10px;
    background: #f6faf6;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: .2s ease;
}

.secondary-button:hover {
    border-color: var(--green);
    background: #eaf2eb;
}

button:disabled {
    opacity: .58;
    cursor: not-allowed;
}

.field-hint {
    margin: 8px 0 0;
    color: #828a83;
    font-size: 11px;
    line-height: 1.5;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
}

.text-button {
    padding: 3px 0;
    color: var(--green);
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.text-button:hover {
    text-decoration: underline;
}

.verified-badge {
    margin-top: 13px;
    color: #176b45;
    font-size: 12px;
    font-weight: 800;
}

.verified-section {
    padding: 14px;
    border: 1px solid #d5eadb;
    border-radius: 12px;
    background: #f6fcf7;
}

fieldset {
    min-width: 0;
    margin: 25px 0 0;
    padding: 0;
    border: 0;
}

fieldset:disabled {
    opacity: .55;
}

.section-heading {
    margin-bottom: 19px;
}

.section-heading h2,
.final-heading h2,
.success-panel h2 {
    margin: 0 0 6px;
    color: #1b3024;
    font-size: 19px;
    letter-spacing: -.3px;
}

.section-heading p,
.final-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 15px;
}

.full-width {
    grid-column: 1 / -1;
}

.terms-card {
    margin: 3px 0 20px;
    padding: 15px;
    border: 1px solid #e2e7df;
    border-radius: 12px;
    background: #fafbf8;
}

.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #455148;
    font-size: 12px;
    line-height: 1.8;
    cursor: pointer;
}

.terms-row input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 3px 0 0;
    accent-color: var(--green);
    cursor: pointer;
}

.terms-row a {
    color: var(--green);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.terms-row a:hover {
    color: #8a6b36;
}

.terms-note {
    margin: 8px 0 0 28px;
    color: #879087;
    font-size: 10px;
    line-height: 1.6;
}

.primary-button {
    display: flex;
    width: 100%;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    color: #fff;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(115deg, var(--green-dark), #28664d);
    box-shadow: 0 8px 20px rgba(23, 75, 59, .17);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, filter .2s;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 11px 25px rgba(23, 75, 59, .23);
    filter: brightness(1.05);
}

.final-otp-section {
    margin-top: 26px;
    padding: 22px;
    border: 1px solid #e2e8df;
    border-radius: 15px;
    background: #fbfcf9;
}

.final-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 23px;
}

.final-icon,
.success-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #176b45;
    border-radius: 50%;
    background: #e3f4e8;
    font-weight: 900;
}

.success-panel {
    padding: 28px 20px;
    border: 1px solid #d7eade;
    border-radius: 16px;
    background: #f7fcf8;
    text-align: center;
}

.success-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    font-size: 22px;
}

.success-panel p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.redirect-note {
    font-size: 11px !important;
}

.success-link {
    margin-top: 20px;
}

.login-note {
    margin: 26px 0 0;
    color: #788078;
    font-size: 12px;
    text-align: center;
}

.login-note a {
    margin-left: 4px;
    font-weight: 800;
    text-decoration: none;
}

.login-note a:hover {
    text-decoration: underline;
}

.register-side {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 54px 43px 28px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0, rgba(207, 177, 113, .20), transparent 35%),
        radial-gradient(circle at 0 100%, rgba(113, 157, 122, .20), transparent 35%),
        linear-gradient(150deg, #173e30, #0d2d23 70%, #12392b);
}

.register-side::before,
.register-side::after {
    position: absolute;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(222, 195, 139, .18);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.register-side::before {
    top: -125px;
    right: -110px;
}

.register-side::after {
    right: -165px;
    bottom: -155px;
    width: 350px;
    height: 350px;
}

.side-content,
.side-footer {
    position: relative;
    z-index: 1;
}

.side-icon {
    display: grid;
    width: 51px;
    height: 51px;
    margin-bottom: 30px;
    place-items: center;
    color: #e2c58c;
    border: 1px solid rgba(226, 197, 140, .4);
    border-radius: 15px;
    background: rgba(255, 255, 255, .04);
    font-size: 25px;
}

.side-eyebrow {
    color: #e2c58c;
}

.register-side h2 {
    max-width: 370px;
    margin: 0 0 18px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 500;
    line-height: 1.28;
    letter-spacing: -.5px;
}

.register-side .side-content > p:not(.side-eyebrow) {
    max-width: 350px;
    margin: 0 0 36px;
    color: #c6d5cb;
    font-size: 13px;
    line-height: 1.9;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 0 0 25px;
}

.benefit > span {
    color: #d9bd81;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.benefit strong,
.benefit small {
    display: block;
}

.benefit strong {
    margin-bottom: 6px;
    color: #fff;
    font-size: 13px;
}

.benefit small {
    color: #b7c9bd;
    font-size: 11px;
    line-height: 1.6;
}

.side-footer {
    margin-top: 45px;
    padding-top: 20px;
    color: #d7e2d9;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.side-footer span {
    padding: 0 6px;
    color: #d9bd81;
}

[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .register-page {
        padding: 25px 15px 40px;
    }

    .register-shell {
        max-width: 650px;
        grid-template-columns: 1fr;
    }

    .register-main {
        padding: 35px clamp(22px, 6vw, 48px);
    }

    .register-side {
        min-height: auto;
        padding: 35px clamp(22px, 6vw, 48px) 25px;
    }

    .register-side h2 {
        max-width: 500px;
        font-size: 30px;
    }

    .register-side .side-content > p:not(.side-eyebrow) {
        margin-bottom: 25px;
    }

    .benefit {
        margin-bottom: 17px;
    }

    .side-icon {
        margin-bottom: 22px;
    }
}

@media (max-width: 480px) {
    .register-page {
        padding: 12px 8px 25px;
    }

    .register-shell {
        border-radius: 17px;
    }

    .register-main {
        padding: 27px 19px 30px;
    }

    .brand-name {
        margin-bottom: 27px;
        font-size: 18px;
    }

    .register-main h1 {
        font-size: 30px;
    }

    .subtitle {
        font-size: 13px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .otp-row {
        grid-template-columns: 1fr;
    }

    .secondary-button {
        width: 100%;
    }

    .terms-card {
        padding: 12px;
    }

    .terms-row {
        font-size: 11px;
    }

    .register-side {
        padding: 30px 22px 22px;
    }

    .register-side h2 {
        font-size: 29px;
    }

    .final-otp-section {
        padding: 16px;
    }
}
