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

:root {
    --bg: #f7f6ff;
    --bg2: #eeeaff;
    --white: #ffffff;
    --border: #e2ddf7;
    --border2: #cdc6f0;
    --accent: #4f46e5;
    --accent2: #6366f1;
    --accent-light: #ede9fe;
    --text1: #1a1530;
    --text2: #4e4878;
    --text3: #8b85b0;
    --green: #059669;
    --red: #dc2626;
    --shadow: rgba(79,70,229,0.12);
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg);
    color: var(--text1);
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

/* ── الجانب الأيسر: ديكور ── */
.left-panel {
    background: linear-gradient(145deg, #4f46e5 0%, #7c3aed 60%, #a855f7 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -100px; right: -100px;
}
.left-panel::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    bottom: -80px; left: -80px;
}

.panel-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.panel-mark {
    width: 64px; height: 64px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 900; color: white;
    font-family: 'JetBrains Mono', monospace;
    backdrop-filter: blur(10px);
}

.panel-name {
    font-size: 28px; font-weight: 900;
    color: white;
    letter-spacing: -0.5px;
}
.panel-name span { color: rgba(255,255,255,0.6); font-weight: 400; font-size: 20px; }

.panel-tagline {
    font-size: 15px; color: rgba(255,255,255,0.7);
    text-align: center;
    line-height: 1.7;
    max-width: 280px;
    position: relative; z-index: 1;
}

/* Stats */
.panel-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    position: relative; z-index: 1;
}
.pstat {
    text-align: center;
}
.pstat-n {
    font-size: 26px; font-weight: 900;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -1px;
}
.pstat-l {
    font-size: 11px; color: rgba(255,255,255,0.55);
    margin-top: 2px;
    font-weight: 500;
}

/* Floating cards */
.float-card {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 12px 16px;
    backdrop-filter: blur(10px);
    z-index: 1;
}
.fc1 { top: 80px; left: 40px; animation: fc-float 6s ease-in-out infinite; }
.fc2 { bottom: 100px; right: 40px; animation: fc-float 8s ease-in-out infinite reverse; }

@keyframes fc-float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fc-label { font-size: 9px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: .1em; }
.fc-val { font-size: 18px; font-weight: 900; color: white; font-family: 'JetBrains Mono', monospace; margin-top: 2px; }
.fc-sub { font-size: 10px; color: rgba(255,255,255,0.5); }

/* ── الجانب الأيمن: الفورم ── */
.right-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--white);
    overflow-y: auto;
}

.form-wrap {
    width: 100%;
    max-width: 380px;
    animation: fadeUp 0.6s cubic-bezier(.16,1,.3,1) both;
}

@keyframes fadeUp {
    from { opacity:0; transform:translateY(20px); }
    to   { opacity:1; transform:translateY(0); }
}

.form-title {
    font-size: 24px; font-weight: 900;
    color: var(--text1);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.form-sub {
    font-size: 13px; color: var(--text3);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Google btn */
.google-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 11px 16px;
    background: var(--white);
    border: 1.5px solid var(--border2);
    border-radius: 10px;
    color: var(--text1);
    font-family: 'Tajawal', sans-serif;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.google-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px var(--shadow);
    transform: translateY(-1px);
}

/* Divider */
.divider {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 24px;
}
.div-line { flex:1; height:1px; background: var(--border); }
.div-text { font-size: 11px; color: var(--text3); font-weight: 600; }

/* Fields */
.field { margin-bottom: 16px; }
.field-label {
    display: block;
    font-size: 12px; font-weight: 700;
    color: var(--text2);
    margin-bottom: 6px;
}
.field-input {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px; font-weight: 500;
    color: var(--text1);
    transition: all 0.15s;
    direction: ltr; text-align: left;
    outline: none;
}
.field-input::placeholder { color: var(--text3); }
.field-input:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

/* Submit btn */
.submit-btn {
    width: 100%;
    padding: 12px 16px;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px; font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
    box-shadow: 0 4px 16px rgba(79,70,229,0.3);
}
.submit-btn:hover {
    background: var(--accent2);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(79,70,229,0.35);
}
.submit-btn:active { transform: translateY(0); }

/* Error */
.error-msg {
    display: none;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 12px; color: var(--red);
    margin-bottom: 14px;
    font-weight: 600;
}

/* Signup link */
.signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text3);
}
.signup-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}
.signup-link a:hover { text-decoration: underline; }

/* Register screen */
.register-screen { display: none; }

/* Pending */
.pending-screen {
    display: none;
    text-align: center;
    padding: 20px 0;
}
.pending-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #fffbeb;
    border: 1px solid #fde68a;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}
.pending-title {
    font-size: 17px; font-weight: 800;
    color: var(--text1); margin-bottom: 8px;
}
.pending-msg {
    font-size: 13px; color: var(--text3);
    line-height: 1.7;
}
.pending-badge {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 16px;
    padding: 6px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 20px;
    font-size: 11px; font-weight: 700;
    color: #b45309;
}
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* Mobile */
@media (max-width: 768px) {
    body { grid-template-columns: 1fr; }
    .left-panel { display: none; }
    .right-panel { padding: 32px 24px; }
}
