:root {
    --bg-color: #FFFFFF;
    --primary-color: #1E4183;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 5px;
    font-family: 'Inter', sans-serif;
    background-color: #1E4183;
    background-image: 
        linear-gradient(to right, #1E4183 25%, rgba(30, 65, 131, 0.7) 48%, rgba(30, 65, 131, 0.15) 70%, transparent 100%),
        url('../img/login_bg.jpg');
    background-repeat: no-repeat, no-repeat;
    background-position: left center, right center;
    background-size: 100% 100%, auto 100vh;
    min-height: 100vh;
    height: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
}
.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 420px;
    margin-left: 7vw;
    margin-right: auto;
    padding: 5px;
    text-align: center;
}
.login-inner { margin: 10px 8px; }
.login-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(30, 65, 131, 0.08);
    margin-bottom: 6px;
}
.login-badge svg { width: 24px; height: 24px; }
.login-logo {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.form-group { margin-bottom: 10px; text-align: left; }
.form-group label {
    display: block;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
}
.form-group input {
    width: 100%;
    padding: 5px;
    height: 34px;
    font-size: 13px;
    border: 1px solid rgba(30, 65, 131, 0.3);
    border-radius: 5px;
    outline: none;
    color: var(--primary-color);
    background: #FFFFFF;
    font-family: inherit;
}
.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 65, 131, 0.15);
}
.btn-login {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    width: 100%;
    padding: 5px;
    height: 36px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
    font-family: inherit;
}
.btn-login:hover { 
    background-color: #153266; 
    box-shadow: 0 4px 10px rgba(30, 65, 131, 0.35); 
}
.login-divider { 
    margin: 8px 0 6px 0; 
    display: flex; 
    align-items: center; 
    text-align: center; 
    color: rgba(30, 65, 131, 0.6); 
    font-size: 11px; 
    font-weight: 600; 
}
.login-divider::before, .login-divider::after { 
    content: ''; 
    flex: 1; 
    border-bottom: 1px solid rgba(30, 65, 131, 0.2); 
}
.login-divider:not(:empty)::before { margin-right: .5em; }
.login-divider:not(:empty)::after { margin-left: .5em; }

.public-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 5px;
}
.btn-visio-pub { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 4px; 
    background: #FFFFFF; 
    color: var(--primary-color); 
    border: 1.5px solid var(--primary-color); 
    width: 100%; 
    padding: 5px; 
    min-height: 34px; 
    border-radius: 5px; 
    font-size: 11px; 
    font-weight: 600; 
    text-decoration: none; 
    box-sizing: border-box; 
    transition: all 0.2s ease; 
    font-family: inherit; 
    text-align: center;
}
.btn-visio-pub:hover { 
    background: rgba(30, 65, 131, 0.08); 
    box-shadow: 0 2px 6px rgba(30, 65, 131, 0.18);
}
.btn-visio-pub svg { flex-shrink: 0; }
.alert { 
    background-color: #ffebee; 
    color: #c62828; 
    padding: 5px; 
    border-radius: 4px; 
    margin-bottom: 10px; 
    font-size: 12px; 
    border: 1px solid #ffcdd2; 
    text-align: left; 
}

@media (max-width: 768px) {
    body { 
        padding: 5px; 
        justify-content: center; 
        background-image: linear-gradient(rgba(30, 65, 131, 0.65), rgba(30, 65, 131, 0.75)), url('../img/login_bg.jpg'); 
        background-size: cover; 
        background-position: center; 
        min-height: 100vh;
        height: auto;
        overflow-y: auto;
    }
    .login-box { margin: 15px auto; width: 94%; max-width: 400px; }
}
@media (max-width: 380px) {
    .public-menu-grid { grid-template-columns: 1fr; }
}