* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Martel Sans', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

.main-container {
    display: flex;
}

/* Formulario*/
.form-box {
    flex: 1;
    background-color: #87005a;
    color: white;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form-box form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
}

/* Nombre arriba de los inputs*/
.form-box label {
    margin-bottom: 0.3rem;
    text-align: left;
}

.form-box input {
    margin-bottom: 2rem;
    padding: 0.5rem;
    border: none;
    border-radius: 3px;
}

.form-box button {
    background-color: white;
    color: #87005a;
    padding: 0.7rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.form-box h2 {
    margin-bottom: 2rem;
}

/*Link para inicio sesión*/
.login-link {
    margin-top: 2.5rem;
    font-size: 0.9rem;
}

.login-link a {
    color: white;
    text-decoration: underline;
}

/* Imagen al lado de formulario*/
.image-box {
    flex: 1;
    background-color: #25002c;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mensaje confirmación y error */
#mensajeRegistro {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 9999;
    display: none;
    color: white;
}

.mensaje.visible {
    display: block;
}

.mensaje.exito {
    background-color: #4bb34b;
}

.mensaje.error {
    background-color: #d55d5d;
}

/* Responsive para pantallas de hasta 565px */
@media (max-width: 565px) {
    .main-container {
        flex-direction: column;
    }

    .form-box {
        padding: 2rem 1rem;
        width: 100%;
    }

    .image-box {
        display: none; /* Oculta la imagen en móviles */
    }

    .form-box form {
        max-width: 100%;
    }

    .login-link {
        text-align: center;
        margin-top: 1.5rem;
    }
}