/* --- Reset básico --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body { background-color: #f4f4f9; height: 100vh; overflow-x: hidden; }

/* --- Splash Screen --- */
#splash-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #ffffff; display: flex; align-items: center; justify-content: center;
    z-index: 3000; transition: opacity 1.5s ease, visibility 1.5s;
}
#splash-screen img { width: 300px; animation: pulse 2s infinite; }
.fade-out { opacity: 0; visibility: hidden; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* --- Pantalla Principal --- */
#main-container {
    padding: 50px; text-align: center; display: flex; flex-direction: column;
    align-items: center; justify-content: center; height: 100vh;
}
h1 { color: #d32f2f; margin-bottom: 30px; }
.btn-group { display: flex; gap: 20px; }

/* --- Login Estructura de Tarjeta Partida --- */
.login-body {
    background: linear-gradient(135deg, #eef2f3 0%, #8e9eab 100%);
    display: flex; justify-content: center; align-items: center; height: 100vh;
    margin: 0; padding: 0;
}

.login-card {
    display: flex; background: white; width: 900px; height: 550px;
    border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden; max-width: 95vw;
}

/* Lado izquierdo (Logo) */
.logo-area {
    background: linear-gradient(135deg, #17a2b8 0%, #0d7a8a 100%);
    flex: 0.8; display: flex; justify-content: center; align-items: center;
    padding: 40px;
}
.logo-area img { width: 80%; max-width: 250px; }

/* Lado derecho (Formulario) */
.form-area {
    flex: 1; padding: 60px 50px; display: flex; flex-direction: column; justify-content: center;
}
.form-area h2 { margin-bottom: 8px; color: #333; font-size: 24px; font-weight: 600; }
.form-area p { margin-bottom: 35px; color: #999; font-size: 13px; }

.input-group { margin-bottom: 25px; }
.input-group label { display: flex; align-items: center; margin-bottom: 10px; font-weight: 600; color: #333; font-size: 13px; }
.input-group label::before { content: ''; display: inline-block; width: 16px; height: 16px; background: #17a2b8; border-radius: 3px; margin-right: 8px; flex-shrink: 0; }
.input-group input {
    width: 100%; padding: 12px 15px; border: 1px solid #ddd;
    border-radius: 6px; font-size: 14px; background: #f8f8f8;
}
.input-group input:focus { border-color: #17a2b8; outline: none; background: white; }

/* --- Botones --- */
button {
    padding: 13px; width: 100%; background-color: #17a2b8;
    color: white; border: none; border-radius: 6px;
    font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s;
    margin-top: 10px;
}
button:hover { background-color: #0d7a8a; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(23,162,184,0.3); }

/* --- Modal Cliente --- */
#modal-cliente {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); display: flex; align-items: center;
    justify-content: center; z-index: 2000;
}
.modal-content {
    background: white; padding: 40px; border-radius: 15px;
    text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    max-width: 400px; width: 90%;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .login-card { flex-direction: column; width: 90%; height: auto; }
    .logo-area { padding: 30px; }
}