/* ============================
   GLOBAL & LAYOUT
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    height: 100vh;
    background: #f5f6f7;
    top: 0px !important;
}

.auth-wrapper {
    display: flex;
    height: 100vh;
}

/* ============================
   LEFT SIDE (Hidden on Mobile)
   ============================ */
.auth-left {
    width: 75%;
    background: radial-gradient(circle at top right, #f26a21 0%, rgba(242, 106, 33, 0.85) 25%, rgba(242, 106, 33, 0.4) 40%, transparent 60%), 
                radial-gradient(circle at bottom center, #1d5e6d 0%, #1d5e6d 45%, rgba(29, 94, 109, 0.7) 60%, transparent 75%), 
                linear-gradient(135deg, #ffffff 0%, #ffffff 35%, #e9f0f2 50%, #1d5e6d 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-content {
    width: 480px;
    padding: 0 20px;
    text-align: center;
    color: #fff;
}

.left-logo {
    width: 442px;
    height: auto;
    margin-bottom: 24px;
}

.left-content h1 {
    font-size: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.left-content p {
    font-size: 14px;
    opacity: 0.85;
}

/* ============================
   RIGHT SIDE (Form)
   ============================ */
.auth-right {
    width: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.login-card {
    width: 360px;
    text-align: center;
}

.login-card h2 {
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Logo & Language Btn */
.logo-group {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.main-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), inset 0 1px 3px rgba(255, 255, 255, 0.35);
    animation: pulseGlow 2.5s infinite;
}

.login-logo-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

/* Language Button */
.lang-wrapper-reg { position: absolute; top: 25px; right: 40px; z-index: 1000; }
.lang-btn-reg { min-width: 60px; height: 40px; border: none; cursor: pointer; border-radius: 20px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); transition: all .3s; font-size: 14px; font-weight: 600; padding: 8px 20px; color: #333; }
.lang-btn-reg:hover { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12); }
.lang-dropdown-reg { position: absolute; top: 50px; right: 0; width: 160px; background: #fff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); padding: 8px 0; display: none; z-index: 1001; }
.lang-dropdown-reg.show { display: block; animation: fadeUp .25s ease; }
.lang-dropdown-reg .lang-item { padding: 10px 15px; cursor: pointer; font-size: 14px; transition: background .2s; color: #333; }
.lang-dropdown-reg .lang-item:hover { background: #f0f0f0; }

/* Tabs */
.tab-switch {
    display: flex;
    background: #eef0f1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    padding: 5px;
}

.tab-switch button {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    color: #555;
    transition: 0.3s;
}

.tab-switch .active {
    background: #0c4f57;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ============================
   INPUTS & WAVE EFFECT
   ============================ */
.wave-group {
    position: relative;
    margin: 22px 0;
    width: 100%;
}

.wave-group .input {
    font-size: 15px;
    padding: 12px 5px;
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1.5px solid #ccc;
    background: transparent;
    color: #333;
}

.wave-group .input:focus { outline: none; }

.wave-group .label {
    color: #999;
    font-size: 15px;
    position: absolute;
    pointer-events: none;
    left: 5px;
    top: 12px;
    display: flex;
}

.wave-group .label-char {
    transition: 0.25s ease all;
    transition-delay: calc(var(--index) * 0.05s);
}

.wave-group .input:focus ~ .label .label-char,
.wave-group .input:valid ~ .label .label-char {
    transform: translateY(-22px);
    font-size: 12px;
    color: #f26a21;
}

.wave-group .bar { position: relative; display: block; width: 100%; }
.wave-group .bar::before, .wave-group .bar::after {
    content: ''; height: 2px; width: 0; bottom: 0; position: absolute;
    background: #f26a21; transition: 0.3s ease all;
}
.wave-group .bar::before { left: 50%; }
.wave-group .bar::after { right: 50%; }
.wave-group .input:focus ~ .bar::before, .wave-group .input:focus ~ .bar::after { width: 50%; }

/* ============================
   PHONE INPUT & DROPDOWN (FIXED)
   ============================ */
/* =========================================
   DROPDOWN FIXES (Paste in register_style.css)
   ========================================= */

/* 1. Allow Dropdown to Float Outside */
.phone-wave-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    position: relative; 
    z-index: 20; /* Password se upar rakho */
}

/* 2. Code Input Wrapper */
.code-wave-group {
    width: 90px !important;
    flex-shrink: 0;
    position: relative;
    overflow: visible !important; /* 🔥 SABSE ZARURI: Box ko katne mat do */
}

/* 3. Number Input Wrapper */
.number-wave-group {
    flex-grow: 1;
}

/* 4. Dropdown Box Styling */
.custom-dropdown {
    position: absolute;
    top: 60px;
    left: 0;
    width: 280px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); /* Strong shadow */
    display: none; /* Default Hidden */
    z-index: 9999; /* Sabse Upar */
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

/* 5. Active State (Show via JS) */
.custom-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 6. Search Bar */
.search-container {
    padding: 10px;
    background: #fff;
    position: sticky;
    top: 0;
    border-bottom: 1px solid #f0f0f0;
    z-index: 10;
}

.search-container input {
    width: 100%;
    padding: 10px 35px 10px 10px; /* Right padding for icon */
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.search-container input:focus {
    border-color: #e85b2a; /* Orange Border */
    background: #fff;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #999;
}

/* 7. List Items */
.country-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.country-list li {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #f9f9f9;
    transition: background 0.2s;
}

.country-list li:hover {
    background: #fff5f2; /* Light Orange Hover */
}

.country-list li strong {
    color: #e85b2a;
    font-weight: 600;
    min-width: 35px;
}
/* ============================
   BUTTONS & LINKS
   ============================ */
.login-btn {
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    border: none;
    background: #e85b2a;
    color: #fff;
    font-size: 15px;
    margin-top: 10px;
    cursor: pointer;
}

.divider {
    margin: 25px 0;
    font-size: 13px;
    color: #777;
    position: relative;
}
.divider::before, .divider::after {
    content: ""; height: 1px; width: 30%; background: #ddd;
    position: absolute; top: 50%;
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.telegram-btn {
    width: 100%;
    padding: 12px;
    background: #f3f5f5;
    border-radius: 30px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.logo-telegram { width: 18px; height: 18px; }

.forgot { display: block; margin-top: 16px; font-size: 13px; color: #e85b2a; text-decoration: none; }
.signup { display: block; margin-top: 35px; font-size: 13px; color: #e85b2a; text-decoration: none; }

/* ============================
   ANIMATIONS & UTILS
   ============================ */
@keyframes pulseGlow {
    0% { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), 0 0 0 0 #f26a21, inset 0 1px 3px rgba(255, 255, 255, 0.35); }
    70% { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), 0 0 0 18px rgba(255, 180, 0, 0), inset 0 1px 3px rgba(255, 255, 255, 0.35); }
    100% { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(255, 180, 0, 0), inset 0 1px 3px rgba(255, 255, 255, 0.35); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.goog-te-banner-frame.skiptranslate, .goog-logo-link, .goog-te-gadget { display: none !important; }
.notranslate { translate: no; }

/* ============================
   MOBILE RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .auth-left { width: 50%; }
    .auth-right { width: 50%; }
    .left-content { width: 100%; padding: 0 30px; }
}

@media (max-width: 768px) {
    .auth-wrapper { flex-direction: column; height: auto; }
    .auth-left { display: none; }
    
    .auth-right {
        width: 100%;
        min-height: 100vh;
        padding: 40px 20px;
        justify-content: center;
        align-items: center;
    }

    .login-card { width: 100%; max-width: 400px; }
    
    .lang-wrapper-reg { top: 15px; right: 15px; }
    
    /* Mobile Fix for Dropdown Width - Keeping it wide */
    .custom-dropdown {
        width: 260px; /* Keep it fixed width so it doesn't shrink to 90px */
    }
}

@media (max-width: 480px) {
    .login-card h2 { font-size: 20px; margin-bottom: 20px; }
    .main-logo { width: 70px; height: 70px; }
    .login-logo-img { width: 40px; height: 40px; }
    .login-btn { padding: 12px; }
}