@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* INYECCIÓN NEOMÓRFICA Y RESPONSIVE (Unificado para Cliente y Maestro) */
body {
    background-color: #E0E5EC !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-container {
    display: flex;
    flex-direction: row;
    background: #E0E5EC;
    border-radius: 20px;
    box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6), -9px -9px 16px rgba(255, 255, 255, 0.8);
    overflow: hidden;
    width: 900px;
    max-width: 95%;
    min-height: 500px;
}
.login-image {
    flex: 1;
    background: linear-gradient(135deg, #0A84FF 0%, #0EA5E9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}
/* Marca tipográfica y Logo PNG */
.login-image .logo {
    color: white;
    text-decoration: none;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.login-image .logo img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}
.login-image .logo:hover img {
    transform: scale(1.05);
}
.login-form {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-header h1 {
    color: #2D3748;
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 800;
}
.login-header p {
    color: #718096;
    margin-bottom: 30px;
    font-weight: 500;
    font-size: 0.95rem;
}
.form-group label {
    font-weight: 700;
    color: #718096;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}
.form-control {
    width: 100%;
    padding: 14px 15px;
    border: none;
    border-radius: 12px;
    background: #E0E5EC;
    box-shadow: inset 6px 6px 10px 0 rgba(163, 177, 198, 0.6), inset -6px -6px 10px 0 rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    box-sizing: border-box;
    font-size: 1rem;
    outline: none;
    color: #2D3748;
    transition: all 0.3s;
}
.form-control:focus {
    box-shadow: inset 6px 6px 10px 0 rgba(163, 177, 198, 0.6), inset -6px -6px 10px 0 rgba(255, 255, 255, 0.8), 0 0 0 3px rgba(10, 132, 255, 0.3);
}
button.btn-primary {
    width: 100%;
    padding: 14px;
    background: #E0E5EC;
    border: none;
    border-radius: 30px;
    color: #0A84FF;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 5px 5px 10px rgba(163, 177, 198, 0.5), -5px -5px 10px rgba(255, 255, 255, 0.8);
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}
button.btn-primary:active {
    box-shadow: inset 4px 4px 8px 0 rgba(163, 177, 198, 0.6), inset -4px -4px 8px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(2px);
}
.error-msg {
    background: #FEE2E2;
    color: #EF4444;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px #FCA5A5;
}
.login-footer {
    margin-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.login-footer p {
    margin: 0;
    color: #718096;
    font-size: 0.95rem;
    font-weight: 500;
}
.login-footer a {
    color: #0A84FF;
    text-decoration: none;
    font-weight: 800;
    transition: 0.2s;
}
.login-footer a:hover {
    color: #0070DF;
    text-decoration: underline;
}
.master-login-link a {
    color: #718096;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.master-login-link a:hover {
    color: #EF4444;
}

/* === RESPONSIVE PARA MÓVILES === */
@media (max-width: 768px) {
    body { align-items: flex-start; }
    .login-container {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
    .login-image {
        flex: 0 0 auto;
        padding: 40px 20px 60px 20px;
    }
    .login-image .logo img { max-width: 150px; }
    .login-image .logo { font-size: 1.8rem; flex-direction: row; gap: 15px; }
    .login-image .logo i { font-size: 2.5rem; }
    .login-form {
        flex: 1;
        padding: 40px 25px;
        justify-content: flex-start;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
        background: #E0E5EC;
        margin-top: -30px;
        box-shadow: 0 -10px 20px rgba(0,0,0,0.1);
    }
}