* { box-sizing: border-box; margin: 0; padding: 0; } html, body { height: 100%; } body { font-family: 'Aptos', sans-serif; background: #ffffff; position: relative; overflow: hidden; } .background-img { position: fixed; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; animation: bubble-in 1.2s ease-out; } @keyframes bubble-in { 0% { transform: scale(0.5); opacity: 0; } 80% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); } } @keyframes slideInFade { 0% { opacity: 0; transform: translateX(-50px); } 100% { opacity: 1; transform: translateX(0); } } .logo { width: 150px; animation: bubble-in 0.5s ease-out; margin-bottom: -20px; margin-top: -75px; } .container { background: #fff; border-radius: 10px; box-shadow: 0 8px 16px rgba(0,0,0,0.15); padding: 40px; max-width: 300px; width: 90%; text-align: center; position: absolute; left: 200px; top: 150px; transform: translateY(-50%); opacity: 0; animation: slideInFade 1s ease-out forwards; animation-delay: 0.3s; } .login-info { display: flex; flex-direction: column; align-items: center; justify-content: center; } .login-info h1 { margin-bottom: 20px; font-size: 2rem; color: #2c3e50; } .login-info input { width: 100%; padding: 10px; margin-top: 5px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; } .submit-button { margin-top: 10px; padding: 10px; border: none; border-radius: 5px; background-color: rgb(182, 182, 182); color: rgb(100, 100, 100); cursor: pointer; width: 100%; font-size: 1rem; transition: background-color 0.3s ease; } .submit-button:hover { background-color: rgb(97, 5, 5); color: rgb(255, 254, 254); } @media screen and (max-width: 900px) { body { background: url('/server/public/img/fondo.png') no-repeat center center fixed; background-size: cover; } .background-img { display: none; } .container { background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); text-align: center; max-width: 400px; width: 90%; position: absolute; left: 20px; top: 250px; transform: translateY(-50%); opacity: 0; animation: slideInFade 1s ease-out forwards; animation-delay: 0.3s; } .logo { width: 150px; animation: bubble-in 0.8s ease-out; margin-bottom: -20px; margin-left: -150px; margin-top: 0px; } } .forgot, .new { font-size: 12px; color: rgb(71, 71, 71); }