/* reset ساده */
* { box-sizing: border-box; margin: 0; padding: 0; }

body.login-page {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: linear-gradient(135deg, #f6f8ff 0%, #fff7fb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* wrapper دو ستونه */
.login-wrapper {
    width: 95%;
    max-width: 1100px;
    background: rgba(255,255,255,0.85);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(20,20,50,0.08);
    display: flex;
    overflow: hidden;
}

/* ستون‌ها */
.login-column {
    flex: 1 1 50%;
    padding: 36px;
    min-width: 280px;
}

/* فرم لاگین */
.login-form-col {
    background: linear-gradient(180deg, rgba(124,131,253,0.06), rgba(255,255,255,0));
}
.lang-switch {
    text-align: right;
    font-size: 14px;
    margin-bottom: 10px;
}
.lang-switch a {
    color: #5b5f8a;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
}
.lang-switch a.active {
    background: rgba(124,131,253,0.12);
    color: #2e3192;
    font-weight: 600;
}

.login-box h1 {
    font-size: 22px;
    margin-bottom: 18px;
    color: #222;
}

.login-box label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    color: #444;
    font-size: 14px;
}

.login-box input[type="email"],
.login-box input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e6e8f2;
    border-radius: 10px;
    background: #fff;
    outline: none;
    transition: box-shadow .15s ease;
}
.login-box input:focus {
    box-shadow: 0 6px 18px rgba(99,102,241,0.12);
    border-color: rgba(99,102,241,0.4);
}

.btn-primary {
    margin-top: 18px;
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #7c83fd, #6ab3ff);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(108,116,255,0.15);
}
.btn-primary:hover { transform: translateY(-1px); }

/* info column */
.login-info-col {
    background: linear-gradient(135deg, rgba(250,240,255,0.6), rgba(240,255,250,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.brand {
    max-width: 420px;
}
.brand-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    margin-bottom: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg,#fff,#f6f9ff);
    padding: 10px;
}
.brand h2 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #2b2b3a;
}
.brand .desc {
    color: #555;
    margin-bottom: 16px;
    line-height: 1.45;
}
.features ul {
    list-style: none;
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 10px;
    color: #444;
    justify-items: start;
}

/* خطا */
.error {
    background: #fff0f0;
    color: #b00020;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(176,0,32,0.08);
}

/* واکنش گرایی */
@media (max-width: 880px) {
    .login-wrapper { flex-direction: column; }
    .login-column { padding: 22px; }
    .login-info-col { order: -1; } /* اول نمایش داده شود در موبایل */
}
