/* --- ESTILOS MODERNOS PARA LOGIN.PHP --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

body.login-body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    max-width: 150px;
    margin-bottom: 1.5rem;
}

.login-card h2 {
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-card p {
    color: #6c757d;
    margin-bottom: 2rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.options {
    text-align: right;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.options a {
    color: #007bff;
    text-decoration: none;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.recaptcha-container {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.return-link {
    margin-top: 2rem;
    text-align: center;
}

.return-link a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
}

/* --- ICONOS DENTRO DEL INPUT --- */
.form-control.with-icon {
    padding-left: 45px !important;
    background-position: left 12px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    transition: all 0.3s ease;
}

.form-control.with-icon:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Icono de Email */
.form-control.with-icon.email-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpath d='M22 6l-10 7L2 6'/%3E%3C/svg%3E");
}

/* Icono de Contraseña */
.form-control.with-icon.password-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a4 4 0 0 1 8 0v4'/%3E%3Ccircle cx='9' cy='7' r='1'/%3E%3Cpath d='M16 3.5a4 4 0 0 1 0 8'/%3E%3Cpath d='M12 15v2'/%3E%3C/svg%3E");
}

/* Botón de mostrar/ocultar contraseña */
.password-toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    cursor: pointer;
    z-index: 2;
}