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

header {
    width: 100vw;
    display: flex;
    background-color: var(--second-bg);
    padding: 1rem;
    margin-bottom: 1rem;

    & a {
        color: var(--title);
        font-family: "Playwrite HR Lijeva", cursive;
        font-size: 1.75rem;
        text-decoration: none;
    }
}

#register {
    width: 95%;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
    align-content: center;
    border: 0.1rem solid #F25135;
    border-radius: 1rem;

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

        & h1 {
            font-size: 1.5rem;

            & span {
                color: var(--text-secondary);
            }
        }

        & p {
            font-size: 1rem;
            padding-bottom: 1rem;
        }

        & #register-form {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;

            & fieldset {
                display: flex;
                flex-direction: column;

                & label {
                    font-size: 1rem;
                    font-weight: bold;
                    padding: 0.175rem;

                    & output {
                        &.error {
                            color: var(--botones-sec);
                            font-weight: normal;
                        }

                        &.success {
                            font-weight: normal;
                            color: green;
                        }
                    }
                }

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

            & button {
                grid-column: span 2;
                background-color: var(--botones-sec);
                color: white;
                font-size: 1rem;
                padding: 0.75rem;
                border-radius: 0.5rem;
                cursor: pointer;
                transition: var(--botones-sec) 0.3s ease-in-out;

                &:hover {
                    background-color: var(--botones-sec-hover);
                }
            }
        }

        & #login-link {
            text-align: center;

            & a {
                text-decoration: none;
                font-size: 0.9rem;
                color: var(--text-secondary);
                font-weight: bold;

                &:hover {
                    text-decoration: underline;
                }
            }
        }
    }

}

/* Responsive */
/* Tablets y celulares*/
@media (max-width: 1024px) {
    #register {
        flex-direction: column;
        width: 90%;
    }

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

    #register #content-register {
        width: 100%;
    }
}

@media (max-width: 768px) {
    #register #content-register #register-form {
        grid-template-columns: 1fr;

        & button {
            grid-column: span 1;
        }
    }
}