* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: calc(20px + env(safe-area-inset-top));
    /* Espacio para status bar */
    min-height: 100vh;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    opacity: 0.7;
    transition: all 0.3s ease;
}


.password-toggle:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.eye-icon {
    width: 24px;
    height: 24px;
    fill: #2575fc;
    /* Color corporativo */
}

/* Para contraseña visible */
.password-toggle.active .eye-icon {
    fill: #1a5dc8;
    /* Color hover corporativo */
}

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    /* Cambia '90%' a '100%' para que ocupe el espacio del padding del body */
    max-width: 400px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.logo-container {
    margin-bottom: 30px;
}

.logo-container img {
    max-width: 200px;
    height: auto;
    transition: transform 0.3s;
}

.logo-container img:hover {
    transform: scale(1.05);
}

h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

input:focus {
    border-color: #2575fc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
}

.btn {
    background-color: #2575fc;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn:hover {
    background-color: #1a5dc8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 93, 200, 0.3);
}

.links {
    margin-top: 20px;
    font-size: 14px;
}

.links a {
    color: #2575fc;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.links a:hover {
    color: #1a5dc8;
    text-decoration: underline;
}

.separator {
    margin: 20px 0;
    position: relative;
    height: 1px;
    background-color: #ddd;
}

.separator::after {
    content: "o";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0 10px;
    color: #999;
}

/* Añade o reemplaza estos estilos en tu archivo login.css */

.social-login {
    display: flex;
    flex-direction: column;
    /* Cambiado a columna para mejor disposición */
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    border: none;
    color: rgb(0, 0, 0);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: white;
    color: #444;
    border: 1px solid #ddd;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-google:hover {
    background-color: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-google img {
    width: 20px;
    height: 20px;
}



.social-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Elimina el estilo anterior de .social-btn que usaba círculos */

/* Media Queries para responsividad */
/* Media Queries para responsividad */
@media (max-width: 480px) {
    .login-container {
        padding: 25px 20px;
        /* Reducción de padding interno */
        width: 100%;
        /* Asegurar ancho total */
        max-width: 100%;
        /* Eliminar restricción de 400px si es necesario, aunque width 100% manda */
    }

    .social-btn,
    .btn-google {
        padding: 12px 15px;
        /* Mantener altura táctil buena pero menos ancho lateral */
        font-size: 15px;
    }

    .social-icon,
    .btn-google img {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }

    h1 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
}