@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body { 
    margin: 0; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    color: #0f172a; 
    height: 100vh;
    overflow: hidden;
}

.auth-container { display: flex; height: 100vh; width: 100vw; }

/* --- Left Side (Clean Design) --- */
.auth-left {
    flex: 1;
    background-color: #0f172a; /* Solid dark navy */
    position: relative;
    display: none; 
    padding: 48px;
}

@media (min-width: 900px) {
    .auth-left { display: flex; flex-direction: column; }
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
}
.auth-brand svg { width: 32px; height: 32px; color: #3b82f6; }

/* Enhanced Left Content */
.auth-left-content {
    margin-top: auto;
    margin-bottom: auto;
    max-width: 420px;
}
.auth-left-content h2 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
}
.auth-left-content p {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}
.auth-left-badges {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}
.auth-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #e2e8f0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Right Side (Form) --- */
.auth-right {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
}

.auth-lang {
    position: absolute;
    top: 24px;
    right: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s;
}
.auth-lang:hover { border-color: #cbd5e1; }

.auth-form-wrapper {
    max-width: 400px;
    width: 100%;
    margin: auto;
    padding: 40px 24px;
}

.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header h1 { font-size: 28px; font-weight: 700; margin: 0 0 8px; color: #0f172a; letter-spacing: -0.5px; }
.auth-header p { margin: 0; font-size: 14px; color: #64748b; }
.auth-header a { color: #2563eb; text-decoration: none; font-weight: 600; }
.auth-header a:hover { text-decoration: underline; }

/* Social Buttons */
.social-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.btn-social {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px;
    background: #fff; color: #0f172a; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.btn-social:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn-social img, .btn-social svg { width: 18px; height: 18px; }

/* Divider */
.divider { display: flex; align-items: center; text-align: center; margin-bottom: 24px; color: #94a3b8; font-size: 12px; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid #e2e8f0; }
.divider::before { margin-right: 12px; }
.divider::after { margin-left: 12px; }

/* Inputs & Errors */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: #0f172a; margin-bottom: 6px; }
.form-input {
    width: 100%; padding: 11px 14px; border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 14px; color: #0f172a; transition: all 0.2s;
    outline: none; background: #fff;
}
.form-input::placeholder { color: #94a3b8; }
.form-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* Red Error State */
.form-input.error { border-color: #ef4444; background: #fef2f2; }
.form-input.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.error-text { display: none; color: #ef4444; font-size: 12px; margin-top: 6px; font-weight: 500; }
.error-text.show { display: block; }

/* Terms */
.terms { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 13px; color: #64748b; }
.terms input { width: 16px; height: 16px; accent-color: #2563eb; cursor: pointer; margin: 0; }
.terms label { margin: 0; cursor: pointer; }
.terms a { color: #2563eb; text-decoration: none; font-weight: 500;}
.terms a:hover { text-decoration: underline; }

/* Buttons */
.btn-submit {
    width: 100%; padding: 12px; background: #2563eb; color: #fff;
    border: none; border-radius: 8px; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: background 0.2s; margin-bottom: 24px;
}
.btn-submit:hover { background: #1d4ed8; }

/* Floating Chat Button */
.chat-btn {
    position: fixed; bottom: 24px; right: 24px;
    width: 50px; height: 50px; border-radius: 50%; background: #0f172a; color: #fff;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); border: none; transition: transform 0.2s;
}
.chat-btn:hover { transform: scale(1.05); }