:root {
    --dark-bg: #121212;
    --dark-surface: #1e1e1e;
    --primary-color: #00bcd4;
    --text-light: #e0e0e0;
    --text-secondary: #aaaaaa;
    --error-bg: #440000;
    --error-text: #ff8888;
    --input-bg: #252525;
    --border-color: #333;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top right, #1f2b3e 0%, #121212 60%);
    background-color: var(--dark-bg);
    background-attachment: fixed;
    color: var(--text-light);
    overflow-x: hidden;
}

a { text-decoration: none; color: var(--primary-color); }


::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }


.text-center { text-align: center; }
small { color: var(--text-secondary); font-size: 0.8rem; margin-top: 5px; display: block; }


@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}



.container {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: all 1.5s ease;
}


.split-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: relative;
}

.left-panel {
    flex: 0 0 0;
    width: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    background: linear-gradient(135deg, #000000 0%, #1e1e1e 100%);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-right: 1px solid #333;
    white-space: nowrap;
    transition: flex 1.5s cubic-bezier(0.4, 0, 0.2, 1), padding 1.5s ease, opacity 0.8s ease 1.2s;
}

.left-panel h1 { font-size: 3em; margin-bottom: 15px; color: var(--primary-color); }
.left-panel p { font-size: 1.2em; color: var(--text-secondary); }

.split-container.active .left-panel {
    flex: 1; padding: 40px; opacity: 1;
}


.form-container {
    background: var(--dark-surface);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.form-container.show-initial {
    opacity: 1;
    transform: translateY(0);
}

#loginFormContainer, #otpFormContainer { max-width: 420px; padding: 40px; }
#registerFormContainer { max-width: 600px; padding: 30px; }

h2 { text-align: center; color: var(--text-light); margin: 0 0 20px 0; font-size: 1.8rem; }

.form-group { margin-bottom: 15px; position: relative; }

label {
    display: block; margin-bottom: 6px; font-weight: 600;
    font-size: 0.9rem; color: var(--text-secondary);
}

.form-control {
    width: 100%; padding: 10px 12px; border: 1px solid #444;
    border-radius: 6px; background-color: var(--input-bg);
    color: var(--text-light); font-size: 0.95rem; box-sizing: border-box;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color); outline: none;
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.1);
}

.error-text {
    color: var(--error-text); font-size: 0.8rem;
    margin-top: 3px; display: block; text-align: right;
}

.alert { padding: 10px; margin-bottom: 15px; border-radius: 6px; text-align: center; font-size: 0.9rem; }
.alert-error { background-color: rgba(68, 0, 0, 0.6); color: var(--error-text); border: 1px solid #550000; }
.alert-success { background-color: #004400; color: #88ff88; border: 1px solid #005500; }
.alert-info { background-color: #003344; color: #88ffff; border: 1px solid #005566; }

.btn-primary {
    background-color: var(--primary-color); color: var(--dark-bg);
    padding: 12px; border: none; border-radius: 6px;
    cursor: pointer; width: 100%; font-weight: bold; font-size: 1rem;
    margin-top: 15px; transition: background 0.3s;
}
.btn-primary:hover { background-color: #00e5ff; }

.form-footer { text-align: center; margin-top: 15px; font-size: 0.9rem; color: var(--text-secondary); }

.form-row { display: flex; gap: 15px; }
.form-group.half { flex: 1; }

/* App Selector */
.application-selector {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px; margin-top: 5px;
}
.app-option {
    background: var(--input-bg); border: 1px solid #444; border-radius: 8px;
    padding: 10px; cursor: pointer; display: flex; flex-direction: column;
    align-items: center; justify-content: center; transition: all 0.2s ease;
}
.app-option:hover { border-color: var(--primary-color); background: #2a2a2a; }
.app-option.selected { border-color: var(--primary-color); background-color: rgba(0, 188, 212, 0.15); }
.app-icon { font-size: 1.3rem; margin-bottom: 3px; }
.app-name { font-size: 0.8rem; font-weight: 500; }

.verification-icon {
    font-size: 3rem; text-align: center; margin-bottom: 15px;
    color: var(--primary-color); animation: pulse 2s infinite;
}
.otp-input {
    text-align: center; letter-spacing: 10px;
    font-size: 1.4rem; font-weight: bold; padding: 12px;
}
.resend-section {
    margin-top: 20px; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 0.9rem; color: var(--text-secondary);
}
.inline-form { display: inline; }
.btn-link {
    background: none; border: none; color: var(--primary-color);
    font-weight: bold; cursor: pointer; text-decoration: underline;
    font-size: inherit; padding: 5px;
}
.btn-link:hover { color: #fff; }
 
.home-container {
    width: 100%; max-width: 1100px; margin: 30px auto;
    padding: 0 20px; animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}


.hero-section {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 40px; padding: 30px;
    background: rgba(30, 30, 30, 0.4); backdrop-filter: blur(10px);
    border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.welcome-text h1 {
    font-size: 2.2rem; margin: 0;
    background: linear-gradient(90deg, #00bcd4, #00e676);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    font-weight: 800;
}
.welcome-text p { color: var(--text-secondary); margin: 5px 0 0 0; font-size: 1rem; }
 
.btn-logout {
    background: rgba(255, 82, 82, 0.1); color: #ff5252;
    border: 1px solid rgba(255, 82, 82, 0.3); padding: 10px 20px;
    border-radius: 50px; cursor: pointer; font-weight: 600;
    transition: all 0.3s ease; display: flex; align-items: center; gap: 8px;
}
.btn-logout:hover {
    background: #ff5252; color: white;
    box-shadow: 0 0 15px rgba(255, 82, 82, 0.4); transform: translateY(-2px);
}
 
.dashboard-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px; margin-bottom: 40px;
}

.glass-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px;
    padding: 30px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease; position: relative; overflow: hidden;
}
.glass-card:hover {
    transform: translateY(-8px); border-color: rgba(0, 188, 212, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}
.glass-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    transform: rotate(45deg); pointer-events: none;
}
 
.card-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 25px; padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.card-header h2 { margin: 0; font-size: 1.4rem; color: #fff; text-align: left; }
.header-icon { font-size: 1.5rem; }

.detail-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.detail-row:last-child { border-bottom: none; }
.value { color: #fff; font-weight: 500; font-size: 1rem; }
 
.status-badge {
    padding: 4px 12px; border-radius: 20px; font-size: 0.8rem;
    font-weight: bold; display: inline-flex; align-items: center; gap: 5px;
}
.status-badge.verified {
    background: rgba(0, 230, 118, 0.15); color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.3);
}
.status-badge.pending {
    background: rgba(255, 82, 82, 0.15); color: #ff5252;
    border: 1px solid rgba(255, 82, 82, 0.3);
}
 
.active-app-card {
    background: linear-gradient(145deg, rgba(30, 35, 40, 0.8), rgba(20, 20, 20, 0.9));
    border: 1px solid rgba(0, 188, 212, 0.2);
    display: flex; flex-direction: column; justify-content: space-between;
}
.active-app-card::before {
    content: ''; position: absolute; top: -20px; right: -20px;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.2) 0%, transparent 70%);
    filter: blur(20px); z-index: 0;
}

.app-header-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; position: relative; z-index: 1;
}
.live-badge {
    background: rgba(0, 230, 118, 0.1); color: #00e676;
    padding: 5px 12px; border-radius: 20px; font-size: 0.75rem;
    font-weight: bold; border: 1px solid rgba(0, 230, 118, 0.3);
    display: flex; align-items: center; gap: 6px;
}
.live-dot {
    width: 8px; height: 8px; background-color: #00e676;
    border-radius: 50%; animation: pulse-green 2s infinite;
}

.app-center-content { text-align: center; padding: 10px 0; position: relative; z-index: 1; }

.icon-wrapper {
    position: relative; width: 100px; height: 100px; margin: 0 auto 15px;
    display: flex; justify-content: center; align-items: center;
}
.icon-bg {
    position: absolute; width: 100%; height: 100%;
    background: linear-gradient(135deg, #1e2a38, #000); border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.app-emoji {
    font-size: 3.5rem; position: relative; z-index: 2;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0,188,212,0.4));
}

.app-title { font-size: 1.6rem; color: #fff; margin: 0; font-weight: 700; letter-spacing: 0.5px; }
.app-desc { color: #aaa; font-size: 0.9rem; margin-top: 5px; line-height: 1.4; }

.app-footer { margin-top: 20px; position: relative; z-index: 1; }

.btn-premium-launch {
    background: linear-gradient(90deg, #00bcd4, #0097a7); color: white;
    text-decoration: none; display: flex; justify-content: center; align-items: center;
    padding: 14px; border-radius: 10px; font-weight: 600;
    transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3); gap: 10px;
}
.btn-premium-launch:hover {
    background: linear-gradient(90deg, #00e5ff, #00bcd4);
    transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 188, 212, 0.5);
}
.btn-premium-launch span { transition: transform 0.3s; }
.btn-premium-launch:hover span { transform: translateX(5px); }
 
.quick-actions-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.action-card {
    background: var(--dark-surface); border-radius: 15px; padding: 20px;
    text-align: center; border: 1px solid #333; transition: 0.3s; cursor: pointer;
}
.action-card:hover {
    background: #252525; border-color: var(--primary-color);
    transform: translateY(-5px);
}
.action-icon {
    font-size: 2rem; margin-bottom: 10px; background: rgba(255,255,255,0.05);
    width: 60px; height: 60px; line-height: 60px; border-radius: 50%; margin: 0 auto 10px;
}
.action-card h4 { margin: 5px 0; color: #fff; }
.action-card p { font-size: 0.8rem; color: #888; margin: 0; }
 
.demo-container {
    width: 100%; max-width: 1200px; margin: 20px auto;
    padding: 0 20px; animation: fadeIn 0.8s ease-out;
}
 
.demo-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 30px; background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); margin-bottom: 30px;
}

.demo-title { display: flex; align-items: center; gap: 15px; }
.demo-icon {
    font-size: 2.5rem; filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.3));
    animation: float 4s ease-in-out infinite;
}
.demo-title h1 {
    margin: 0; font-size: 1.8rem;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.btn-back {
    color: var(--text-secondary); font-weight: 600; display: flex; align-items: center;
    gap: 8px; transition: 0.3s; background: transparent;
    border: 1px solid rgba(255,255,255,0.1); padding: 8px 15px; border-radius: 30px;
}
.btn-back:hover {
    color: var(--primary-color); border-color: var(--primary-color);
    background: rgba(0, 188, 212, 0.1);
}
 
.demo-welcome { text-align: center; margin-bottom: 40px; }
.demo-welcome h2 { font-size: 2rem; color: var(--primary-color); margin-bottom: 10px; }
.demo-welcome p { color: var(--text-secondary); font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

.demo-section h3 {
    border-left: 4px solid var(--primary-color); padding-left: 15px;
    margin-bottom: 25px; font-size: 1.5rem; color: #fff;
}

.demo-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px; margin-bottom: 40px;
}

.demo-stat-card {
    background: linear-gradient(145deg, #1e1e1e, #161616);
    border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px;
    padding: 30px; text-align: center; transition: transform 0.3s, box-shadow 0.3s;
    position: relative; overflow: hidden;
}
.demo-stat-card:hover {
    transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 188, 212, 0.15);
    border-color: rgba(0, 188, 212, 0.3);
}
.demo-stat-card h4 {
    color: var(--text-secondary); margin: 0 0 15px 0; font-size: 1rem;
    text-transform: uppercase; letter-spacing: 1px;
}
.stat-number {
    font-size: 3rem; font-weight: 800; color: #fff; margin: 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}
.stat-number.warning { color: #ff5252; text-shadow: 0 0 20px rgba(255, 82, 82, 0.3); }
 
.demo-actions { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; }
.btn-demo-primary {
    background: linear-gradient(90deg, #00bcd4, #00e5ff); color: #000;
    padding: 12px 30px; border-radius: 50px; border: none; font-weight: 700;
    cursor: pointer; transition: 0.3s; box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}
.btn-demo-primary:hover {
    transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 188, 212, 0.5);
}
.btn-demo-secondary {
    background: transparent; border: 2px solid var(--text-secondary);
    color: var(--text-light); padding: 12px 30px; border-radius: 50px;
    font-weight: 700; cursor: pointer; transition: 0.3s;
}
.btn-demo-secondary:hover {
    border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.05);
}

.demo-note-box {
    background: rgba(255, 193, 7, 0.08); border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px; padding: 20px; text-align: center;
    max-width: 800px; margin: 0 auto;
}
.demo-note-box h4 { color: #ffc107; margin: 0 0 10px 0; font-size: 1.1rem; }
.demo-note-box p { color: #ddd; font-size: 0.9rem; margin: 5px 0; }
 
@media (max-width: 900px) {
    .left-panel, .split-container.active .left-panel {
        display: none !important; flex: 0 !important; width: 0 !important; padding: 0 !important;
    }
    
    .container { width: 100vw; padding: 15px; }
    #loginFormContainer, #registerFormContainer, #otpFormContainer { max-width: 100%; padding: 25px; }
    
    .demo-header { flex-direction: column; gap: 20px; text-align: center; }
    .demo-title { flex-direction: column; gap: 5px; }
    .demo-actions { flex-direction: column; width: 100%; }
    .btn-demo-primary, .btn-demo-secondary { width: 100%; }
}

@media (max-width: 768px) {
    .hero-section { flex-direction: column; text-align: center; gap: 20px; }
    .btn-logout { width: 100%; justify-content: center; }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
    .form-row { flex-direction: column; gap: 0; }
}