@import url('../base.css');

#register {
    width: 70%;
    margin-top: 1rem;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
    align-content: center;
    border: 0.1rem solid #F25135;
    border-radius: 1rem;
    box-shadow: 0 0 1rem 0.5rem rgba(0, 0, 0, 0.1);
}

#card-image-register {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    gap: 1rem;
    color: white;
}

#card-image-register > picture > img {
    object-fit: cover;
    border-radius: 1rem;
}

#content-register{
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    gap: 1rem;
}

#content-register h1 {
    font-size: 1.5rem;
}

#content-register h1 span {
    color: orangered;
}

#content-register p {
    font-size: 1rem;
    padding-bottom: 1rem;
}


/* Formulario de registro */
#register-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#register-form label {
    font-size: 1rem;
    font-weight: bold;
}

#register-form input {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
}

#register-form button {
    background-color: orangered;
    color: white;
    font-size: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: orangered 0.3s ease-in-out;
}

#register-form button:hover {
    background-color: #F25135;
}

/* Estilos para el enlace de inicio de sesión */
.login-link {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: -2.5rem;
}

.login-link a {
    text-decoration: none;
    font-size: 0.9rem;
    color: orangered;
    font-weight: bold;
}


/* Volver al home */
#back-to-home {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: 9;
}


#back-to-home .back-link svg {
    width: 2rem;
    height: 2rem;
    fill: var(--botones);    
}

#back-to-home .back-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease-in-out;
    border: 0.1rem solid white;
}

#back-to-home .back-link:hover {
    background-color: rgba(0, 0, 0, 0.2);
    border: 0.1rem solid var(--botones);
}

/* Responsive para celulares */
@media (max-width: 768px) {
    #register {
        width: 90%;
        flex-direction: column;
        padding: 1rem;
    }

    #card-image-register {
        display: none;
    }

    #content-register {
        width: 100%;
        text-align: center;
        padding: 1.5rem;
    }

    #content-register h1 {
        font-size: 2rem;
    }

    #content-register p {
        font-size: 1rem;
        padding-bottom: 1rem;
    }

    #register-form {
        width: 100%;
        padding: 0 1rem;
    }

    #register-form input {
        width: 100%;
    }

    #register-form button {
        width: 100%;
    }

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

    .login-link a {
        font-size: 1rem;
    }
}


/* Responsive para tablets */
@media (max-width: 1100px) and (min-width: 768px) {
    #register {
        width: 80%;
        flex-direction: column;
        padding: 1.5rem;
    }

    #card-image-register {
        width: 50%;
        display: block;
    }

    #content-register {
        width: 100%;
        text-align: center;
        padding: 1.5rem;
    }

    #content-register h1 {
        font-size: 2.25rem;
    }

    #content-register p {
        font-size: 1rem;
        padding-bottom: 1rem;
    }

    #register-form {
        width: 100%;
        padding: 0 1.5rem;
    }

    #register-form input {
        width: 100%;
    }

    #register-form button {
        width: 100%;
    }

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

    .login-link a {
        font-size: 1rem;
    }
}
