#custom-login-form .form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px;
}

#custom-login-form .form-group label {
    width: 180px; /* ancho fijo para la primera columna */
    text-align: right; 
    margin-right: 10px;
}

#custom-login-form .form-group input[type="text"],
#custom-login-form .form-group input[type="password"] {
    width: 300px; /* ancho fijo para la segunda columna */
    box-sizing: border-box;
    text-align: left;
}

@media (max-width: 500px) {
    #custom-login-form .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    #custom-login-form .form-group label {
        width: 100%;
        margin-bottom: 5px;
    }

    #custom-login-form .form-group input[type="text"],
    #custom-login-form .form-group input[type="password"] {
        width: 100%;
    }

    .password-wrapper {
        width: 100%;
    }
}

#custom-login-form .password-wrapper {
    position: relative;
    width: 300px;
    box-sizing: border-box;
}

#custom-login-form .password-wrapper input {
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    padding-right: 30px;
}

#custom-login-form .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
}

#custom-login-form .form-group.accept-terms {
    flex-direction: column;
    align-items: flex-start;
}

#custom-login-form .form-submit {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#custom-login-form .form-submit input[type="submit"] {
    background-color: #F29603;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    border-radius: 20px;
}

#custom-login-form .form-submit input[type="submit"]:hover {
    background-color: darkred;
}

#custom-login-form .error-message {
    font-size: 20px;
    color: red;
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
    font-size: 20px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
