* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: white;
    padding: 10px;
    overflow: hidden;
    position: relative;
}

.container {
    display: flex;
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #1e3a8a;
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.2s ease-out, opacity 0.5s ease-out;
    z-index: 1;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.login-section {
    width: 100%;
    padding: 40px 30px;
    background: white;
}

.login-box {
    text-align: center;
    width: 100%;
}

.user-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
}

.password-container {
    position: relative;
}

.eye-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-70%);
    cursor: pointer;
    color: #000;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #f4b73f;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #e09e2c;
}

.register-text {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
}

.register-text a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.register-text a:hover {
    text-decoration: underline;
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .login-section {
        padding: 20px;
    }

    form input {
        padding: 14px;
        font-size: 16px;
    }

    .particle,
    canvas {
        display: none;
    }
    
    body {
        overflow: hidden;
    }
}