/* ============================================
   LOGIN MODERN STYLES — ET System
   ============================================ */

:root {
    --primary: #035aa6;
    --primary-dark: #024880;
    --primary-light: #4a8dc9;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e293b;
    --card-bg: rgba(255, 255, 255, 0.97);
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --border-color: #e2e8f0;
    --border-focus: #035aa6;
    --error: #ef4444;
    --success: #22c55e;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --radius: 12px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    height: 100%;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    color: var(--text-dark);
    background: linear-gradient(135deg, #035aa6 0%, #024880 100%);
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* ============================================
   SPLIT LAYOUT
   ============================================ */
.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 40px;
}

.login-brand-section {
    flex: 1;
    background: linear-gradient(135deg, #035aa6 0%, #024880 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-brand-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: brandGlow 8s ease-in-out infinite alternate;
}

@keyframes brandGlow {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-10%, -10%); }
}

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

.brand-content img {
    width: 120px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.brand-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.brand-content p {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.6;
    max-width: 320px;
}

.brand-quote {
    margin-top: 32px;
    padding: 20px;
    border-left: 3px solid rgba(255,255,255,0.3);
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.75;
    text-align: left;
}

/* ============================================
   LOGIN FORM
   ============================================ */
.login-form {
    width: 100%;
    max-width: 360px;
}

.login-form .logo-mobile {
    display: none;
    text-align: center;
    margin-bottom: 24px;
}

.login-form .logo-mobile img {
    width: 80px;
}

.login-form h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.login-form .subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    outline: none;
    background: #f8fafc;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.input-group input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(3, 90, 166, 0.1);
    background: white;
}

.input-group input::placeholder {
    color: #94a3b8;
}

.input-group .toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 22px;
    height: 22px;
    opacity: 0.5;
    transition: opacity var(--transition);
}

.input-group .toggle-pass:hover {
    opacity: 1;
}

.input-group .toggle-pass img {
    width: 100%;
    height: 100%;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    margin-top: 4px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(3, 90, 166, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: border-color var(--transition), color var(--transition);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.login-links {
    margin-top: 20px;
    text-align: center;
}

.login-links a {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
    padding: 4px 0;
}

.login-links a:hover {
    color: var(--primary);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ============================================
   MESSAGE BOX (Toast)
   ============================================ */
#messagebox {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
}

#messagebox .loginmessage {
    padding: 14px 20px;
    background: white;
    color: var(--error);
    border-radius: var(--radius);
    border-left: 4px solid var(--error);
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ============================================
   FOOTER
   ============================================ */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 12px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    background: transparent;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 440px;
        min-height: auto;
    }

    .login-brand-section {
        display: none;
    }

    .login-form-section {
        padding: 32px 24px;
    }

    .login-form .logo-mobile {
        display: block;
    }

    .login-form h1 {
        text-align: center;
    }

    .login-form .subtitle {
        text-align: center;
    }
}

  