:root {
    --bg-color: #0f0f12;
    --primary-accent: #10a37f;
    --primary-hover: #0d8f6b;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --text-main: #ececf1;
    --text-muted: #a0a0a0;
    --error-color: #ef4444;
    --success-color: #10b981;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
}

/* =========================================
   BACKGROUND EFFECTS
   ========================================= */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    animation: float 12s infinite ease-in-out alternate;
    pointer-events: none;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: var(--primary-accent);
    top: -150px;
    left: -150px;
    animation-duration: 15s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: #6366f1; /* بنفش */
    bottom: -100px;
    right: 20%;
    animation-delay: -3s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* =========================================
   LAYOUT (DESKTOP)
   ========================================= */
.container {
    display: flex;
    width: 100%;
    height: 100%;
    z-index: 1;
    position: relative;
}

/* Left Side: Features Showcase */
.showcase-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

/* Right Side: Glass Form */
.form-side {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
}

/* =========================================
   COMPONENTS
   ========================================= */
.brand-logo {
    font-size: clamp(2.5rem, 5vw, 4rem); /* سایز سیال */
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--primary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.slogan {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 450px;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 400px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
    text-align: right;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-accent);
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(16, 163, 127, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-accent);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================
   GLASS FORM
   ========================================= */
.glass-form-container {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-top: 1px solid var(--glass-highlight);
    position: relative;
    overflow: hidden;
    transition: height 0.3s ease;
}

.glass-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Inputs */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: 0.3s;
}

.form-input:focus {
    border-color: var(--primary-accent);
    background: rgba(0, 0, 0, 0.5);
}

.form-input.error {
    border-color: var(--error-color);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-accent);
    cursor: pointer;
}

/* Buttons */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(16, 163, 127, 0.3);
    margin-top: 10px;
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Error Messages */
.field-error,
.form-error,
.error-minimal {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.form-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.form-footer a,
.auth-footer a {
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2px;
    transition: 0.2s;
}

.form-footer a:hover,
.auth-footer a:hover {
    color: var(--primary-accent);
    border-color: var(--primary-accent);
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   NOTIFICATION
   ========================================= */
#notificationArea {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.notification {
    background: rgba(30, 30, 30, 0.98);
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    border-right: 4px solid var(--error-color);
    pointer-events: all;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
}

.notification.success { border-right-color: var(--success-color); }

.notif-text { flex: 1; font-size: 14px; }

.notif-close {
    cursor: pointer;
    font-size: 20px;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.notif-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   RESPONSIVE DESIGN (IMPROVED)
   ========================================= */

/* Tablet & Mobile Stacked Layout */
@media (max-width: 968px) {
    .form-side { padding: 20px; }
    .glass-form-container { padding: 30px; }
}

@media (max-width: 768px) {
    /* مخفی کردن بخش گرافیکی */
    .showcase-side { display: none; }
    .bg-orb { display: none; }
    
    /* تنظیم بک‌گراند جایگزین برای موبایل */
    .container {
        background: linear-gradient(180deg, #16161b 0%, #0f0f12 100%);
    }
    
    /* فرم تمام عرض */
    .form-side {
        flex: 1;
        padding: 15px;
        align-items: center; /* مرکز کردن عمودی */
        justify-content: center;
    }
    
    /* ابعاد کارت فرم برای موبایل */
    .glass-form-container {
        width: 95%;
        max-width: 500px;
        padding: 25px 20px;
        /* افکت بلور در موبایل ممکن است کند باشد، پس بهینه می‌کنیم */
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    /* فاصله ورودی‌ها در موبایل */
    .input-group { margin-bottom: 16px; }
    
    /* دکمه ارسال برای لمس راحت‌تر */
    .submit-btn {
        padding: 16px;
        font-size: 1.05rem;
    }
}

/* Mobile Small (Under 480px) */
@media (max-width: 480px) {
    .form-header h2 { font-size: 1.6rem; }
    
    .notification {
        font-size: 13px;
        padding: 12px 15px;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
    }
    
    #notificationArea {
        width: 100%;
        top: 10px;
        left: 0;
        transform: none;
    }
}