﻿:root {
    --reg-primary: #6c3df4;
    --reg-primary-dark: #5630ce;
    --reg-secondary: #ec4899;
    --reg-text: #1f2937;
    --reg-muted: #6b7280;
    --reg-border: #e5e7eb;
    --reg-bg: #f8f7fc;
    --reg-success: #159a69;
    --reg-danger: #dc3545;
}

.registration-page {
    min-height: 100vh;
    background: radial-gradient(circle at 15% 15%, rgba(108,61,244,.08), transparent 28%), radial-gradient(circle at 85% 80%, rgba(236,72,153,.07), transparent 25%), var(--reg-bg);
}

.registration-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 38%) 1fr;
}

/* BRAND SIDE */

.registration-brand {
    position: relative;
    overflow: hidden;
    padding: 60px;
    display: flex;
    align-items: center;
    background: linear-gradient( 145deg, rgba(63,32,151,.97), rgba(108,61,244,.94) 55%, rgba(145,56,180,.94) );
    color: #fff;
}

    .registration-brand::before,
    .registration-brand::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        background: rgba(255,255,255,.07);
    }

    .registration-brand::before {
        width: 420px;
        height: 420px;
        right: -180px;
        top: -120px;
    }

    .registration-brand::after {
        width: 300px;
        height: 300px;
        left: -120px;
        bottom: -100px;
    }

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.registration-logo {
    display: inline-block;
    margin-bottom: 100px;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.8px;
    text-decoration: none;
}

.brand-eyebrow,
.step-caption {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.brand-eyebrow {
    color: rgba(255,255,255,.72);
}

.brand-message h1 {
    max-width: 480px;
    margin: 0 0 20px;
    font-size: clamp(40px, 4vw, 64px);
    line-height: 1.03;
    letter-spacing: -2px;
    font-weight: 800;
}

    .brand-message h1 span {
        display: block;
        color: #f7c5df;
    }

.brand-message p {
    max-width: 450px;
    margin: 0;
    color: rgba(255,255,255,.78);
    line-height: 1.8;
    font-size: 16px;
}

.trust-points {
    margin-top: 55px;
    display: grid;
    gap: 16px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.88);
}

.trust-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    font-weight: 700;
}

/* FORM SIDE */

.registration-content {
    padding: 50px 6%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.registration-card {
    width: 100%;
    max-width: 850px;
    padding: 30px 0 70px;
}

.registration-header {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.step-caption {
    color: var(--reg-primary);
}

.registration-header h2 {
    margin: 0 0 10px;
    color: var(--reg-text);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.8px;
}

.registration-header p {
    margin: 0;
    color: var(--reg-muted);
}

.login-link {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--reg-muted);
}

    .login-link a {
        margin-left: 5px;
        color: var(--reg-primary);
        font-weight: 700;
        text-decoration: none;
    }

/* PROGRESS */

.registration-progress {
    display: flex;
    align-items: center;
    margin-bottom: 42px;
    padding: 20px 0;
    border-bottom: 1px solid var(--reg-border);
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: .42;
}

    .progress-step.active {
        opacity: 1;
    }

.step-number {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e9e5f8;
    color: var(--reg-primary);
    font-weight: 800;
}

.progress-step.active .step-number {
    color: #fff;
    background: var(--reg-primary);
    box-shadow: 0 7px 18px rgba(108,61,244,.22);
}

.progress-step strong,
.progress-step span {
    display: block;
}

.progress-step strong {
    color: var(--reg-text);
    font-size: 14px;
}

.progress-step span {
    margin-top: 2px;
    color: var(--reg-muted);
    font-size: 11px;
}

.progress-line {
    height: 1px;
    flex: 1;
    min-width: 30px;
    margin: 0 18px;
    background: var(--reg-border);
}

/* SECTIONS */

.form-section {
    padding: 30px;
    margin-bottom: 22px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(229,231,235,.9);
    border-radius: 22px;
    box-shadow: 0 15px 45px rgba(31,41,55,.045);
    backdrop-filter: blur(8px);
}

.section-title {
    margin-bottom: 25px;
}

    .section-title h3 {
        margin: 0 0 6px;
        color: var(--reg-text);
        font-size: 19px;
        font-weight: 800;
    }

    .section-title p {
        margin: 0;
        color: var(--reg-muted);
        font-size: 13px;
    }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 21px;
}

    .form-group > label {
        display: block;
        margin-bottom: 8px;
        color: #374151;
        font-size: 13px;
        font-weight: 700;
    }

.input-shell,
.select-shell {
    position: relative;
}

.input-icon {
    position: absolute;
    z-index: 2;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
}

.form-control,
.form-select {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--reg-border);
    border-radius: 13px;
    background: #fff;
    color: var(--reg-text);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.form-control {
    padding: 12px 50px 12px 44px;
}

.form-select {
    padding: 12px 40px 12px 15px;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--reg-primary);
        box-shadow: 0 0 0 4px rgba(108,61,244,.09);
    }

.form-control::placeholder {
    color: #b0b6c0;
}

.form-select:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

.field-status {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 700;
}

    .field-status.success {
        color: var(--reg-success);
    }

    .field-status.error {
        color: var(--reg-danger);
    }

.field-meta {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 6px;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: var(--reg-danger);
    font-size: 12px;
}

.field-hint {
    margin-left: auto;
    color: #9ca3af;
    font-size: 11px;
}

/* PASSWORD */

.password-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px;
    border: 0;
    background: transparent;
    color: var(--reg-primary);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.password-security {
    padding: 16px;
    margin-top: -4px;
    background: #faf9fd;
    border-radius: 13px;
}

.password-strength-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 9px;
    color: var(--reg-muted);
    font-size: 11px;
}

    .password-strength-header strong {
        color: var(--reg-text);
    }

.password-strength-bar {
    height: 5px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #e5e7eb;
    border-radius: 99px;
}

    .password-strength-bar span {
        display: block;
        width: 0;
        height: 100%;
        border-radius: inherit;
        background: var(--reg-primary);
        transition: width .25s ease;
    }

.password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .password-rules span {
        padding: 5px 9px;
        border-radius: 20px;
        background: #eceef2;
        color: #7b8190;
        font-size: 10px;
    }

        .password-rules span.valid {
            background: #e6f6ef;
            color: var(--reg-success);
        }

/* CHOICE */

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.choice-card {
    position: relative;
    cursor: pointer;
}

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

.choice-content {
    display: block;
    padding: 15px;
    border: 1px solid var(--reg-border);
    border-radius: 13px;
    background: #fff;
    text-align: center;
    transition: .2s ease;
}

.choice-card input:checked + .choice-content {
    border-color: var(--reg-primary);
    background: rgba(108,61,244,.06);
    box-shadow: 0 0 0 3px rgba(108,61,244,.07);
}

.choice-title {
    color: var(--reg-text);
    font-weight: 700;
}

/* CONSENT */

.consent-section {
    padding: 25px 30px;
    margin-bottom: 24px;
    border: 1px solid var(--reg-border);
    border-radius: 20px;
    background: #fff;
}

.consent-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 13px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.55;
    cursor: pointer;
}

    .consent-item input {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        margin-top: 2px;
        accent-color: var(--reg-primary);
    }

    .consent-item strong {
        color: var(--reg-primary);
    }

    .consent-item small {
        display: inline-block;
        margin-left: 5px;
        color: #9ca3af;
    }

    .consent-item.optional {
        padding-top: 13px;
        margin-top: 13px;
        border-top: 1px solid #f0f1f3;
    }

/* BUTTON */

.registration-submit {
    width: 100%;
    min-height: 58px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient( 100deg, var(--reg-primary), #8450f6 );
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(108,61,244,.23);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

    .registration-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 15px 35px rgba(108,61,244,.3);
    }

    .registration-submit:disabled {
        opacity: .65;
        cursor: wait;
    }

.button-arrow {
    font-size: 20px;
}

.button-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: registration-spin .7s linear infinite;
}

.registration-submit.loading .button-loader {
    display: block;
}

.registration-submit.loading .button-arrow {
    display: none;
}

.security-note {
    margin: 15px 0 0;
    color: #9ca3af;
    text-align: center;
    font-size: 11px;
}

.form-alert:empty {
    display: none;
}

.form-alert {
    padding: 14px 17px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #fff0f0;
    color: var(--reg-danger);
    font-size: 13px;
}

@keyframes registration-spin {
    to {
        transform: rotate(360deg);
    }
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .registration-shell {
        grid-template-columns: 1fr;
    }

    .registration-brand {
        min-height: 360px;
        padding: 45px 7%;
    }

    .registration-logo {
        margin-bottom: 50px;
    }

    .brand-message h1 {
        font-size: 42px;
    }

    .trust-points {
        display: none;
    }
}

@media (max-width: 700px) {
    .registration-content {
        padding: 25px 18px 50px;
    }

    .registration-brand {
        min-height: 280px;
        padding: 30px 22px;
    }

    .registration-logo {
        margin-bottom: 35px;
        font-size: 24px;
    }

    .brand-message h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .brand-message p {
        font-size: 14px;
    }

    .registration-header {
        display: block;
    }

    .login-link {
        margin-top: 18px;
    }

    .registration-header h2 {
        font-size: 28px;
    }

    .registration-progress {
        overflow-x: auto;
    }

    .progress-step span {
        display: none;
    }

    .form-section,
    .consent-section {
        padding: 22px 18px;
    }

    .form-grid,
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .progress-line {
        min-width: 20px;
        margin: 0 10px;
    }
}
/* ============================================================
   REGISTRATION - PROFILE STEP
   ============================================================ */

.progress-step.completed {
    opacity: 1;
}

    .progress-step.completed .step-number {
        background: #e6f6ef;
        color: var(--reg-success);
    }

.progress-line.completed {
    background: var(--reg-success);
}


/* CONDITIONAL FIELDS */

.conditional-fields {
    transition: opacity .25s ease, transform .25s ease;
}

    .conditional-fields.hidden {
        display: none;
    }


/* PROFILE NEXT MESSAGE */

.profile-next-message {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px 22px;
    border: 1px solid rgba(108, 61, 244, .12);
    border-radius: 18px;
    background: linear-gradient( 135deg, rgba(108, 61, 244, .055), rgba(236, 72, 153, .035) );
}

.profile-next-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(108, 61, 244, .10);
    color: var(--reg-primary);
    font-size: 18px;
}

.profile-next-message strong {
    display: block;
    margin-bottom: 5px;
    color: var(--reg-text);
    font-size: 13px;
}

.profile-next-message p {
    margin: 0;
    color: var(--reg-muted);
    font-size: 12px;
    line-height: 1.6;
}


/* BIRTH DATE */

input[type="date"].form-control {
    color-scheme: light;
}

    input[type="date"].form-control::-webkit-calendar-picker-indicator {
        cursor: pointer;
    }


/* SMALL SCREEN */

@media (max-width: 700px) {

    .profile-next-message {
        padding: 17px;
    }

    .profile-next-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
}
