/* ===== MZAI ERP — Styles ===== */

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #c8a45c;
    --accent-light: #e0c87a;
    --accent-dark: #a8883c;
    --bg: #0f0f1a;
    --surface: #1e1e32;
    --text: #e8e8f0;
    --text-muted: #8888a0;
    --border: #2a2a44;
    --error: #e74c3c;
    --success: #2ecc71;
    --radius: 12px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
}

/* ===== Login ===== */

.login-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.logo-icon {
    color: var(--accent);
    font-size: 2rem;
}

.logo-text {
    color: var(--text);
}

.logo-accent {
    color: var(--accent);
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Login Brand Side ===== */

.login-brand {
    display: none;
}

@media (min-width: 768px) {
    .login-container {
        gap: 2rem;
    }
    .login-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 320px;
        padding: 2rem;
    }
    .brand-icon {
        font-size: 4rem;
        color: var(--accent);
        margin-bottom: 1rem;
    }
    .brand-content h1 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }
    .brand-content .accent {
        color: var(--accent);
    }
    .brand-tagline {
        color: var(--text-muted);
        font-size: 0.85rem;
        line-height: 1.5;
    }
    .brand-divider {
        width: 60px;
        height: 2px;
        background: var(--accent);
        margin: 1rem auto;
        opacity: 0.5;
    }
    .brand-sub {
        color: var(--text-muted);
        font-size: 0.8rem;
    }
}

/* ===== Form ===== */

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: var(--font);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.15);
}

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

.btn-login {
    width: 100%;
    padding: 0.8rem;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: var(--font);
}

.btn-login:hover {
    background: var(--accent-light);
}

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

.login-error {
    color: var(--error);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 1rem;
}

.hidden { display: none; }

.login-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.version-badge {
    background: var(--bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.7rem;
}
