* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /*height: 100vh;*/
    display: flex;
    font-family: 'Inter', sans-serif;
    background: #f8f7f4;
    /*overflow: hidden;*/
}

/* ===== LEFT PANEL ===== */
.left-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 50px;
    background: url('https://images.unsplash.com/photo-1476514525535-07fb3b4ae5f1?w=1200&q=80') center/cover no-repeat;
}

.left-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.1) 0%,
        rgba(15, 23, 42, 0.5) 50%,
        rgba(15, 23, 42, 0.85) 100%
    );
    z-index: 1;
}

.left-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.left-content .tagline {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards 0.3s;
}

.left-content .tagline span {
    color: #f59e0b;
}

.left-content .sub-tagline {
    font-size: 15px;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    line-height: 1.65;
    max-width: 380px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards 0.5s;
}

/* Steps indicator on left */
.steps-row {
    display: flex;
    gap: 32px;
    margin-top: 35px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards 0.7s;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #f59e0b;
    flex-shrink: 0;
}

.step-text {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
}

.step-text strong {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

/* Floating icons */
.float-icon {
    position: absolute;
    z-index: 2;
    color: rgb(255, 255, 255);
    font-size: 80px;
    animation: float 6s ease-in-out infinite;
}

.float-icon.i1 { top: 12%; left: 8%; animation-delay: 0s; }
.float-icon.i2 { top: 22%; right: 12%; animation-delay: 2s; font-size: 55px; }
.float-icon.i3 { top: 50%; left: 18%; animation-delay: 4s; font-size: 65px; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(5deg); }
}

/* ===== RIGHT PANEL ===== */
.right-panel {
    width: 540px;
    min-width: 440px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 44px 56px;
    background: #fff;
    position: relative;
    box-shadow: -20px 0 60px rgba(0,0,0,0.06);
    overflow-y: auto;
}

.right-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.025) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

.form-wrapper {
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateX(30px);
    animation: slideRight 0.7s ease forwards 0.4s;
}

/* Logo */
.logo-area {
    text-align: center;
    margin-bottom: 10px;
}

.logo-area img {
    width: 140px;
    height: 66px;
    /*border-radius: 13px;*/
    /*object-fit: cover;*/
    /*box-shadow: 0 4px 18px rgba(0,0,0,0.1);*/
    margin-bottom: 5px;
}

.logo-area .brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.5px;
    /*margin-top:40px;*/
}

.logo-area .brand-name span {
    color: #f59e0b;
}

.logo-area .brand-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 5px;
    font-weight: 300;
}

/* Heading */
.form-heading {
    margin-bottom: 28px;
}

.form-heading h2 {
    font-size: 21px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.form-heading p {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 300;
}

/* Alert & Success — inline within form */
.alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shakeX 0.5s ease;
}

.alert i { font-size: 14px; flex-shrink: 0; }

.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success i { font-size: 14px; flex-shrink: 0; }

@keyframes shakeX {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* Input group */
.input-group {
    margin-bottom: 18px;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 7px;
}

.input-field {
    position: relative;
}

.input-field i.field-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: 15px;
    transition: color 0.3s;
    pointer-events: none;
    z-index: 1;
}

.input-field input,
.input-field select {
    width: 100%;
    padding: 13px 15px 13px 44px;
    border: 2px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.input-field select {
    cursor: pointer;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.input-field select option {
    background: #fff;
    color: #1e293b;
}

.input-field input::placeholder {
    color: #b0bec5;
    font-weight: 300;
}

.input-field input:focus,
.input-field select:focus {
    border-color: #f59e0b;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.input-field input:focus ~ i.field-icon,
.input-field select:focus ~ i.field-icon {
    color: #f59e0b;
}

/* Validation message wrapper */
.a_idexist {
    display: block;
    margin-top: 6px;
    min-height: 18px;
    font-size: 12px;
}

/* Inline validation messages inside .a_idexist */
.a_idexist .alert,
.a_idexist .success {
    margin-bottom: 0;
    padding: 6px 10px;
    font-size: 12px;
    animation: none;
}

/* Wallet badge */
.wallet-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
    font-size: 11px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.wallet-badge i { font-size: 10px; }

/* Register Button */
.btn-register {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.btn-register:hover::before {
    left: 100%;
}

.btn-register:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
    white-space: nowrap;
}

/* Footer */
.form-footer {
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.form-footer a {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.form-footer a:hover {
    color: #d97706;
    text-decoration: underline;
}

/* Security note */
.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
    font-size: 11px;
    color: #b0bec5;
}

.security-note i {
    font-size: 11px;
    color: #16a34a;
}

/* ===== ANIMATIONS ===== */
@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
    to { opacity: 1; transform: translateX(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    body {
        flex-direction: column;
        overflow-y: auto;
    }

    .left-panel {
        min-height: 260px;
        flex: none;
        padding: 36px 28px;
        display:none;
    }

    .left-content .tagline {
        font-size: 24px;
    }

    .steps-row {
        gap: 18px;
        flex-wrap: wrap;
    }

    .right-panel {
        width: 100%;
        min-width: unset;
        padding: 36px 22px;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.06);
    }

    .float-icon { display: none; }
}
.input-field{
    position: relative;
}

.toggle-password{
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    z-index: 10;
}

#signup:disabled{
    opacity: .8;
    cursor: not-allowed;
}
.mobile-wrapper{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
}

.country-code{
    width:120px;
    height:50px;
    border:1px solid #ddd;
    border-radius:10px;
    padding:0 10px;
    background:#fff;
    outline:none;
}

.mobile-input{
    position:relative;
    flex:1;
}

.mobile-input input{
    width:100%;
    height:50px;
    border:1px solid #ddd;
    border-radius:10px;
    padding:0 45px 0 15px;
    outline:none;
}

.mobile-input .field-icon{
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);
    color:#888;
}
.sponsor-field{
    position:relative;
}

.sponsor-field input{
    padding-right:140px !important;
}

.sponsor-name{
    position:absolute;
    right:45px;
    top:50%;
    transform:translateY(-50%);
    font-size:13px;
    font-weight:600;
    white-space:nowrap;
    max-width:120px;
    overflow:hidden;
    text-overflow:ellipsis;
}

.sponsor-field .field-icon{
    right:15px;
}
@media (max-width: 480px) {
    .left-panel {
        min-height: 220px;
        padding: 28px 18px;
    }

    .left-content .tagline {
        font-size: 20px;
    }

    .steps-row { gap: 14px; }

    .step-item { gap: 8px; }

    .step-num { width: 30px; height: 30px; font-size: 12px; }

    .step-text { font-size: 11px; }
    .step-text strong { font-size: 11px; }

    .right-panel { padding: 28px 18px; }

    .form-wrapper { max-width: 100%; }
}
@media (max-width:576px){

    .mobile-wrapper{
        gap:8px;
    }

    .country-code{
        width:95px;
        font-size:13px;
    }

    .mobile-input input{
        font-size:14px;
    }
}

.country-code option img{
    width:20px;
    height:20px;
      border-radius: 5px;
}
@media (max-width:576px){

    .country-code option img{
    width:15px;
    height:15px;
      border-radius: 5px;
}
}

/* Terms & Conditions */
.terms-group {
    margin-top: 15px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-item label {
    font-size: 10px;
    color: #555;
    line-height: 1.6;
}

.checkbox-item a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-item a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .terms-group {
        margin-top: 12px;
    }

    .checkbox-item {
        gap: 8px;
        margin-bottom: 10px;
    }

    .checkbox-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-top: 2px;
    }

    .checkbox-item label {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {

    .checkbox-item {
        gap: 8px;
        align-items: flex-start;
    }

    .checkbox-item label {
        font-size: 12px;
        line-height: 1.5;
    }

    .checkbox-item input[type="checkbox"] {
        width: 15px;
        height: 15px;
    }

    .checkbox-item a {
        word-break: break-word;
    }
}


.flag-icon{
    width:22px;
    height:16px;
    object-fit:cover;
    margin-right:8px;
    border-radius:2px;
}

.country-item{
    display:flex;
    align-items:center;
}

.select2-container--default .select2-selection--single{
    height:45px;
}

.select2-selection__rendered{
    display:flex !important;
    align-items:center;
    height:45px;
}

.select2-selection__rendered .flag-icon{
    margin-right:8px;
}

.select2-results__option .flag-icon{
    margin-right:8px;
}
