body {
    background-size: cover !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-image: url("custom/myvitale/login_background.png") !important;
    /*background-color: blue;*/
}
#login #logo {
    background-image: url("custom/myvitale/logo.png") !important;
}
section#login {
    background-color: #F2F5FA;
    width: 450px;
    border-radius: 20px;
    margin: auto;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    left: 0;
    right: 0;
    padding: 40px;
    box-sizing: border-box;
}
@media screen and (orientation: portrait) and (max-width: 500px) {
    section#login {
        width: 90%;
    }
}
#login form {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
#login form * {
    width: 100%;
    color: black;
}
#login form button, #login form input[type="button"] {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    color: white;
    border-radius: 20px;
    /*margin-top: 50px;*/
    cursor: pointer;
    font-weight: bold;
    width: 100% !important;
}

input, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-title);
}
.form-actions a {
    text-decoration: none;
    color: inherit;
}
.btn-main, .btn-secondary {
    text-decoration: none;
    padding: 1rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    border-radius: 15px;
    align-items: center;
    width: 95%;
    justify-content: center;
    border: none;
    margin: 1rem auto;
}

.btn-main {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    color: var(--primary-color-text);;
}

.btn-secondary {
    position: relative;
    color: var(--primary-color);
    background: transparent;
}

/* Pseudo-elemento para el borde con degradado */
.btn-secondary::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 2px; /* Grosor del borde */
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    -webkit-mask: linear-gradient(white 0 0) content-box, linear-gradient(white 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none; /* Permite hacer clic a través del borde */
}

.btn-secondary:hover, .btn-main:hover {
    opacity: 0.8;
}
#logo {
    background-size: contain;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url("../images/login/logo.png") !important;
    height: 150px;
    margin-bottom: 20px;
}
