/* login.css - Ecme Style */
:root {
    --primary: #2a85ff;
    --primary-hover: #0069f6;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #ffffff;
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    height: 100vh;
    background-color: var(--bg-light);
    overflow: hidden; /* جلوگیری از اسکرول اضافه */
}

.auth-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

/* --- ستون سمت چپ (فرم) --- */
.auth-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: white;
    overflow-y: auto;
}

.auth-container {
    width: 100%;
    max-width: 440px; /* عرض استاندارد فرم */
}

.logo-area { margin-bottom: 2rem; }
.logo-area h1 { color: var(--primary); font-size: 1.8rem; font-weight: 800; letter-spacing: -1px; }

.header-text { margin-bottom: 2.5rem; }
.header-text h2 { font-size: 1.75rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.5rem; }
.header-text p { color: var(--text-muted); font-size: 1rem; }

/* --- استایل فرم‌ها --- */
.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    height: 48px; /* ارتفاع فیلدها */
    padding: 0 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    outline: none;
    transition: all 0.2s ease;
    background: #fff;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(42, 133, 255, 0.15); /* افکت فوکس مدرن */
}

.btn-login {
    width: 100%;
    height: 48px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}

.btn-login:hover {
    background-color: var(--primary-hover);
}

/* --- پیام خطا --- */
.error-msg {
    background-color: #fef2f2;
    color: #ef4444;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid #fee2e2;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

/* --- فوتر فرم --- */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.auth-footer a { color: var(--text-main); font-weight: 700; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* --- ستون سمت راست (تصویر) --- */
.auth-right {
    display: none; /* در موبایل مخفی */
}

@media (min-width: 1024px) {
    .auth-right {
        display: flex;
        flex: 1.2; /* کمی عریض‌تر از فرم */
        padding: 1.5rem;
        background-color: #fff;
    }
    
    .image-cover {
        width: 100%;
        height: 100%;
        border-radius: 24px; /* گوشه‌های گرد عکس */
        background-image: url('https://images.unsplash.com/photo-1554118811-1e0d58224f24?q=80&w=1947&auto=format&fit=crop'); /* عکس کافه */
        background-size: cover;
        background-position: center;
        position: relative;
    }
    
    /* لایه تیره روی عکس برای خوانایی بیشتر (اختیاری) */
    .image-overlay {
        position: absolute;
        bottom: 0; left: 0; right: 0;
        padding: 3rem;
        background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
        border-radius: 0 0 24px 24px;
        color: white;
    }
    .image-overlay h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
    .image-overlay p { opacity: 0.9; }
}