/* Estilos básicos */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: background 0.5s ease;
}

.container {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.container:hover {
    transform: scale(1.02);
}

/* Sección izquierda (animación e imagen) */
.left-section {
    flex: 1;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.left-section img {
    width: 80%;
    max-width: 300px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.left-section h1 {
    margin-top: 20px;
    font-size: 2rem;
    text-align: center;
    color: #007bff;
    animation: fadeIn 1s ease-in-out;
}

/* Sección derecha (formularios) */
.right-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.right-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #007bff;
    animation: fadeIn 1.5s ease-in-out;
}

.form-group {
    width: 100%;
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: background 0.3s ease;
}

.form-group input:focus {
    background: rgba(255, 255, 255, 1);
    outline: none;
}

.form-group input[type="submit"] {
    background: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.form-group input[type="submit"]:hover {
    background: #0056b3;
    transform: translateY(-3px);
}

.links {
    margin-top: 10px;
    text-align: center;
}

.links a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Mensajes de registro */
.message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
}

.message.success {
    background-color: #28a745;
    color: #fff;
}

.message.error {
    background-color: #dc3545;
    color: #fff;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-section h1, .right-section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .left-section h1, .right-section h2 {
        font-size: 1.4rem;
    }

    .form-group input, .form-group input[type="submit"] {
        padding: 8px;
        font-size: 0.9rem;
    }
}