/* =====================
   Login Page Styles - FAMS Franchise Management System
   ===================== */

body.login-page {
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-sans);
}

.login-wrap {
    display: flex;
    width: 900px;
    min-height: 560px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

/* =====================
   Brand Panel (Left)
   ===================== */

.brand-panel {
    width: 44%;
    background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 55%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
}

.brand-panel::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.brand-panel::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.brand-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
}

.brand-logo {
    margin-bottom: 16px;
}

.brand-icon {
    font-size: 48px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.brand-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 6px;
    margin: 0 0 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.brand-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin: 0 0 24px;
    letter-spacing: 0.5px;
}

.brand-divider {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 auto 24px;
    border-radius: 2px;
}

.brand-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    text-align: left;
}

.brand-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
}

.feature-dot {
    width: 6px;
    height: 6px;
    background: #5dade2;
    border-radius: 50%;
    flex-shrink: 0;
}

.brand-copy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* =====================
   Login Panel (Right)
   ===================== */

.login-panel {
    width: 56%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 44px;
}

.login-box {
    width: 100%;
    max-width: 340px;
}

.login-header {
    margin-bottom: 32px;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.login-desc {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* Error */
.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #fff5f5;
    color: #c0392b;
    border: 1px solid #f5c6cb;
    border-left: 3px solid #e74c3c;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 13px;
}

.error-icon {
    font-size: 14px;
    flex-shrink: 0;
}

/* Form */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.input-wrap {
    position: relative;
}

.form-group input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #dde2e8;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #fafbfc;
}

.form-group input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 87, 153, 0.1);
}

.form-group input::placeholder {
    color: #bbb;
}

/* Login Button */
.btn-login {
    width: 100%;
    height: 46px;
    margin-top: 8px;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    letter-spacing: 1px;
}

.btn-login:hover {
    opacity: 0.9;
}

.btn-login:active {
    transform: scale(0.99);
}

/* Footer */
.login-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    font-size: 11px;
    color: #aaa;
    line-height: 1.6;
}

/* =====================
   Language Selector
   ===================== */
.lang-selector {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 24px;
}

.lang-btn {
    font-size: 12px;
    color: #aaa;
    text-decoration: none;
    padding: 3px 6px;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.lang-btn:hover {
    color: #2563eb;
    background-color: #f0f4fa;
}

.lang-btn.active {
    color: #2563eb;
    font-weight: 700;
    background-color: #eaf0fb;
}

.lang-divider {
    color: #ddd;
    font-size: 11px;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 720px) {
    .login-wrap {
        flex-direction: column;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
    }

    .brand-panel {
        width: 100%;
        padding: 36px 24px;
    }

    .brand-features {
        display: none;
    }

    .login-panel {
        width: 100%;
        padding: 36px 24px;
    }
}
