/* ============================================================
   MXQ V2 - ULTRA-PREMIUM 3D HOLOGRAPHIC AUTH SYSTEM
   Futuristic Super-App Login & Register Interface
   ============================================================ */

body {
    background-color: var(--bg-ice-pearl) !important;
    font-family: var(--font-bengali);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 15% 15%, rgba(79, 70, 229, 0.12) 0%, transparent 45%), radial-gradient(circle at 85% 85%, rgba(236, 72, 153, 0.1) 0%, transparent 45%), radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.auth-container {
    max-width: 480px !important;
    padding: 16px;
    min-height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Top Header Navigation Bar ── */

.auth-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.auth-logo-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-logo-img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(79, 70, 229, 0.3));
    border-radius: 8px;
}

.auth-logo-text {
    font-size: 21px;
    font-weight: 900;
    background: var(--gradient-holographic-indigo);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: var(--holo-indigo);
    border: 1px solid var(--border-3d);
    border-radius: var(--radius-full);
    padding: 7px 15px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-3d-sm);
    transition: var(--transition-bounce);
}

.lang-btn:hover {
    border-color: var(--holo-indigo);
    box-shadow: var(--shadow-3d-glow-indigo);
    transform: translateY(-2px);
}

/* ── Segmented Control Auth Tab Switcher ── */

.auth-tabs {
    display: flex;
    background: #ffffff;
    border: 1px solid var(--border-3d);
    border-radius: var(--radius-full);
    padding: 4px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-3d-sm);
}

.auth-tab-item {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: var(--transition-bounce);
}

.auth-tab-item.active {
    background: var(--gradient-holographic-indigo);
    color: #ffffff;
    box-shadow: var(--shadow-3d-glow-indigo);
}

/* ── Auth Image Banner (Below Tabs) ── */

.auth-banner {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    box-shadow: var(--shadow-3d-md);
    border: 1px solid var(--border-3d-highlight);
    overflow: hidden;
    background-color: #ffffff;
}

.auth-banner-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    border-radius: var(--radius-lg);
}

/* ── Main 3D Form Glass Card ── */

.auth-form-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--border-3d-highlight);
    box-shadow: var(--shadow-3d-lg);
    display: flex;
    flex-direction: column;
}

/* 3D Input Group */

.input-group-3d {
    background: #f8fafc;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    height: 54px;
    padding: 0 14px;
    width: 100%;
    border: 1.5px solid var(--border-3d);
    transition: var(--transition-bounce);
}

.input-group-3d:focus-within {
    background: #ffffff;
    border-color: var(--holo-indigo);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.25);
}

.input-icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--holo-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 10px;
    flex-shrink: 0;
}

.ph-code-badge {
    font-size: 13.5px;
    color: var(--holo-indigo);
    font-weight: 800;
    margin-right: 8px;
}

.input-group-3d input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent !important;
    font-size: 14.5px;
    color: var(--text-primary);
    font-weight: 700;
    font-family: var(--font-bengali);
    min-width: 0;
    height: 100%;
}

.input-group-3d input::placeholder {
    color: var(--text-dim);
}

.toggle-pass-icon {
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-fast);
}

.toggle-pass-icon:hover {
    color: var(--holo-indigo);
}

/* Captcha Badge */

.captcha-container {
    background: #f8fafc;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    height: 54px;
    padding: 0 0 0 14px;
    width: 100%;
    overflow: hidden;
    border: 1.5px solid var(--border-3d);
    transition: var(--transition-bounce);
}

.captcha-container:focus-within {
    background: #ffffff;
    border-color: var(--holo-indigo);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.25);
}

.captcha-container input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent !important;
    font-size: 14.5px;
    color: var(--text-primary);
    font-weight: 700;
    font-family: var(--font-bengali);
    min-width: 0;
    height: 100%;
}

.captcha-code-box {
    background: var(--gradient-holographic-indigo);
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 18px;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    color: #ffffff;
    letter-spacing: 4px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
    position: relative;
    min-width: 100px;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-3d-glow-indigo);
}

.captcha-code-box:hover {
    opacity: 0.9;
}

/* 3D Primary Button */

.btn-submit-3d {
    width: 100%;
    height: 54px;
    background: var(--gradient-holographic-indigo);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 800;
    font-family: var(--font-bengali);
    cursor: pointer;
    box-shadow: var(--shadow-3d-glow-indigo);
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit-3d:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.45);
}

.btn-submit-3d:active {
    transform: translateY(1px);
}

/* Footer & Helper Links */

.auth-footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 0 4px;
}

.auth-footer-links a {
    color: var(--holo-indigo) !important;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 800;
}

.auth-footer-links a:hover {
    color: var(--holo-rose) !important;
}

.auth-page-footer {
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    margin-top: 24px;
}

/* Bottom Sheet Modal for Languages */

.bs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    z-index: 300;
}

.bs-overlay.open {
    display: block;
}

.bs-sheet {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border-3d-highlight);
    border-radius: 28px 28px 0 0;
    z-index: 400;
    overflow: hidden;
    box-shadow: 0 -15px 50px rgba(79, 70, 229, 0.2);
}

.bs-sheet.open {
    display: block;
}

.bs-option {
    padding: 16px 20px;
    font-size: 15px;
    color: var(--text-primary);
    text-align: center;
    cursor: pointer;
    border-bottom: 1px solid var(--border-3d);
    font-weight: 600;
}

.bs-option.active {
    font-weight: 800;
    color: var(--holo-indigo);
    background: rgba(79, 70, 229, 0.08);
}

.bs-close {
    padding: 14px 20px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    cursor: pointer;
}

/* Autofill text fix */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}