:root {
    --brand-yellow: #FFCC00;
    --brand-yellow-hover: #E6B800;
    --brand-navy: #1A2A40;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --input-bg: #f8f9fa;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #f4f7f6;
}

.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.login-left {
    flex: 1.3;
    background: linear-gradient(135deg, #1A2A40 0%, #243656 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 5%;
    text-align: center;
}

@media (min-width: 769px) {
    .login-left {
        background: linear-gradient(135deg, rgba(26, 42, 64, 0.85), rgba(26, 42, 64, 0.95)),
            url("/savvy/jakarta.faces.resource/images/officepic.png.xhtml?ln=mirage-layout");
        background-size: cover;
        background-position: center;
    }
}

.left-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.login-right {
    flex: 0.7;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.form-card { width: 100%; max-width: 420px; z-index: 1; }

.form-header { text-align: center; margin-bottom: 35px; }
.form-header h1 { font-size: 2rem; color: var(--brand-navy); margin-bottom: 10px; font-weight: 700; }
.form-header p { color: var(--text-light); margin: 0; }

.input-group { margin-bottom: 22px; position: relative; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--brand-navy); font-size: 0.9rem; }

.login-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    border-radius: 12px;
    border: 1.5px solid #e1e8ed;
    background: var(--input-bg);
    font-size: 1rem;
    color: var(--text-dark);
}

.login-input:focus {
    outline: none;
    border-color: var(--brand-yellow);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.15);
}

.password-wrap { position: relative; }
.login-input-password { padding-right: 72px; }

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 8px;
}

.login-btn {
    width: 100%;
    background: var(--brand-yellow);
    border: none;
    padding: 15px;
    border-radius: 12px;
    color: #1a1a1a;
    font-weight: 700;
    margin-top: 15px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.3);
}

.login-btn:hover { background: var(--brand-yellow-hover); }

.login-messages { list-style: none; padding: 0; margin: 0 0 16px; }
.login-msg { display: block; padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; font-size: 0.9rem; }
.login-msg-error { background: #fdecea; color: #b71c1c; }
.login-msg-info { background: #e8f5e9; color: #1b5e20; }
.login-msg-warn { background: #fff8e1; color: #f57f17; }

.typing-text { display: inline-block; font-size: 1.2rem; border-right: 2px solid var(--brand-yellow); min-height: 1.4em; }

@media (max-width: 768px) {
    .login-left { display: none; }
    .login-right { flex: 1; padding: 20px; }
    .form-card { background: #fff; padding: 30px; border-radius: 20px; box-shadow: var(--shadow-soft); }
}
