/* Registration form styles — loaded on register pages only */

.reg-country-picker__flag,
.reg-country-picker__option-flag {
    width: 26px !important;
    height: 18px !important;
    max-width: 26px;
    max-height: 18px;
    object-fit: cover;
}

/* ============================================================
   15. REGISTRATION PAGES
   ============================================================ */
.register-page {
    position: relative;
    padding: 120px 0 80px;
    min-height: 100vh;
    background: linear-gradient(160deg, #eef4ff 0%, #f8fbff 45%, #edf2f9 100%);
    overflow: hidden;
}

.register-page__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.12), transparent 42%),
        radial-gradient(circle at 85% 10%, rgba(13, 31, 60, 0.08), transparent 38%),
        radial-gradient(circle at 70% 85%, rgba(37, 99, 235, 0.1), transparent 40%);
    pointer-events: none;
}

.register-page__dots {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: radial-gradient(rgba(13, 31, 60, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.register-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 0;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 24px 80px rgba(13, 31, 60, 0.12),
        0 2px 0 rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(13, 31, 60, 0.06);
}

.register-shell__aside {
    padding: 44px 36px;
    background: linear-gradient(165deg, var(--pitch-green) 0%, var(--pitch-green-mid) 55%, var(--pitch-green-light) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.register-shell__aside::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -60px;
    left: -60px;
}

.register-shell__aside::after {
    content: '\f1ad';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 140px;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.register-shell__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
    backdrop-filter: blur(6px);
}

.register-shell__badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    font-size: 14px;
}

.register-shell__title {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
    color: #fff;
}

.register-shell__subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.register-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.register-steps__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.register-steps__num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 800;
    font-size: 14px;
}

.register-steps__item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.register-steps__item p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.register-shell__trust {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.register-shell__trust i {
    color: #93c5fd;
}

.register-shell__form-wrap {
    padding: 44px 40px;
    background: #fff;
}

.register-form-card {
    width: 100%;
}

.reg-fields-row {
    margin-left: -8px;
    margin-right: -8px;
}

.reg-fields-row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.reg-field {
    margin-bottom: 18px;
}

.reg-field__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--section-title-color, #0d244d);
    margin-bottom: 8px;
}

.reg-field__label i {
    width: 18px;
    color: var(--pitch-green-light);
    font-size: 14px;
}

.reg-field__input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    padding: 14px 16px;
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
    color: #1e293b;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    appearance: none;
}

.reg-field__input:focus {
    outline: none;
    border-color: var(--pitch-green-light);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(42, 95, 160, 0.12);
}

.reg-field__input::placeholder {
    color: #94a3b8;
}

.reg-phone-group {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 10px;
}

.reg-country-picker {
    position: relative;
    min-height: 50px;
    z-index: 5;
}

.reg-country-picker.is-open {
    z-index: 30;
}

.reg-country-picker__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.reg-country-picker__trigger:hover,
.reg-country-picker.is-open .reg-country-picker__trigger {
    border-color: var(--pitch-green-light);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(42, 95, 160, 0.12);
}

.reg-country-picker__flag {
    width: 26px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(13, 31, 60, 0.08);
    flex-shrink: 0;
}

.reg-country-picker__code {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    flex: 1;
    white-space: nowrap;
    text-align: start;
}

.reg-country-picker__arrow {
    font-size: 11px;
    color: #64748b;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.reg-country-picker.is-open .reg-country-picker__arrow {
    transform: rotate(180deg);
}

.reg-country-picker__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: max(100%, 280px);
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(13, 31, 60, 0.14);
    max-height: 260px;
    overflow-y: auto;
}

.reg-country-picker__option {
    display: grid;
    grid-template-columns: 28px 1fr auto 18px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.reg-country-picker__option:hover {
    background: #f1f5f9;
}

.reg-country-picker__option.is-selected {
    background: rgba(42, 95, 160, 0.08);
}

.reg-country-picker__option-flag {
    width: 26px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(13, 31, 60, 0.08);
}

.reg-country-picker__option-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reg-country-picker__option-code {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    direction: ltr;
}

.reg-country-picker__option-check {
    font-size: 12px;
    color: var(--pitch-green-light);
    opacity: 0;
}

.reg-country-picker__option.is-selected .reg-country-picker__option-check {
    opacity: 1;
}

.reg-field__input--code {
    display: none;
}

.reg-field__select-wrap {
    position: relative;
}

.reg-field__input--select {
    padding-left: 16px;
    padding-right: 42px;
    cursor: pointer;
}

.reg-field__select-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 12px;
    pointer-events: none;
}

[dir="ltr"] .reg-field__select-icon {
    left: auto;
    right: 16px;
}

[dir="ltr"] .reg-field__input--select {
    padding-right: 16px;
    padding-left: 42px;
}

.reg-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 148px;
    padding: 20px 16px;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    margin-bottom: 0;
}

.reg-upload:hover,
.reg-upload:focus-within,
.reg-upload.reg-upload--filled {
    border-color: var(--pitch-green-light);
    background: #fff;
    box-shadow: 0 8px 24px rgba(13, 31, 60, 0.06);
}

.reg-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.reg-upload__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 95, 160, 0.1);
    color: var(--pitch-green-light);
    font-size: 20px;
}

.reg-upload__text {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.reg-upload__hint {
    font-size: 12px;
    color: #64748b;
}

.reg-upload__filename {
    font-size: 12px;
    font-weight: 600;
    color: var(--pitch-green-light);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reg-field .error_meassages {
    display: block;
    margin-top: 6px;
    font-size: 12px;
}

.reg-field.is-invalid .reg-field__input,
.reg-field.is-invalid .reg-field__input--select,
.reg-field.is-invalid .reg-phone-group,
.reg-upload.is-invalid {
    border-color: #ea5455 !important;
    box-shadow: 0 0 0 3px rgba(234, 84, 85, 0.12);
}

.reg-field.is-invalid .reg-field__input:focus,
.reg-field.is-invalid .reg-field__input--select:focus {
    border-color: #ea5455 !important;
}

.reg-submit-btn {
    width: 100%;
    margin-top: 8px;
    border: none;
    border-radius: 16px;
    padding: 16px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--pitch-green) 0%, var(--pitch-green-light) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(13, 31, 60, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    position: relative;
    overflow: hidden;
}

.reg-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(13, 31, 60, 0.28);
}

.reg-submit-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.reg-submit-btn__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
}

.reg-submit-btn__loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: regSpin 0.7s linear infinite;
}

.reg-submit-btn.is-loading .reg-submit-btn__text,
.reg-submit-btn.is-loading .reg-submit-btn__icon {
    opacity: 0;
}

.reg-submit-btn.is-loading .reg-submit-btn__loader {
    display: inline-block;
    position: absolute;
}

@keyframes regSpin {
    to { transform: rotate(360deg); }
}

.register-switch {
    margin: 22px 0 0;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.register-switch a {
    color: var(--pitch-green-light);
    font-weight: 700;
    margin-inline-start: 6px;
    text-decoration: none;
}

.register-switch a:hover {
    color: var(--pitch-green);
    text-decoration: underline;
}

.register-page--provider .register-shell__aside {
    background: linear-gradient(165deg, #0b1a33 0%, #12356a 55%, #1e4f96 100%);
}

@media (max-width: 991.98px) {
    .register-page {
        padding: 100px 0 60px;
    }

    .register-shell {
        grid-template-columns: 1fr;
    }

    .register-shell__aside {
        padding: 32px 24px;
    }

    .register-shell__form-wrap {
        padding: 28px 22px 32px;
    }

    .register-steps {
        gap: 12px;
    }

    .reg-phone-group {
        grid-template-columns: 150px 1fr;
    }
}

[dir="ltr"] .reg-country-picker__menu {
    right: auto;
    left: 0;
}

[dir="ltr"] .reg-country-picker__code {
    text-align: start;
}
