/* login_modern.css */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --text-main: #0f172a;
    --text-muted: #64748b;
}

body.login-page {
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    overflow: hidden;
    margin: 0 auto;
}

.login-card {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    max-width: 500px; /* Prevents stretching on intermediate tablet sizes */
    margin: 0 auto;
}

.login-illustration {
    flex: 1.2;
    background: url('/assets/img/myfacility.webp') center/cover no-repeat;
    display: none;
}

.login-header {
    text-align: center;
}

.login-header h1 {
    font-size: 1.75rem;
    color: var(--text-main);
    margin: 10px 0 5px;
    font-weight: 800;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem; /* Strictly 1rem to prevent iOS form focus zooming */
    min-height: 44px;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    min-height: 44px;
    transition: background 0.3s;
    margin-top: 10px;
    -webkit-appearance: none;
    outline: none;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.alert {
    padding: 12px 15px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* Tablet & Desktop Layout */
@media (min-width: 800px) {
    .login-card {
        max-width: none;
        margin: 0;
    }
    .login-illustration {
        display: block;
    }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    body.login-page {
        padding: 15px;
    }

    .login-container {
        max-width: 380px;
        border-radius: 12px;
    }
    
    .login-card {
        padding: 35px 20px;
    }

    .login-header h1 {
        font-size: 1.4rem;
    }
    
    .login-header p {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
}