@media screen and (max-width: 700px) {
    #form {
        width: 80%;
        margin: 120px auto;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #form input[type="text"],
    #form input[type="password"] {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 15px;
    }

    h2 {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 10px;
    }

    .btn {
        color: black;
        background-color: lightgray;
        padding: 5px;
        text-align: center;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    #form label {
        margin-top: 15px;
        margin-bottom: 5px;
    }
}

h1 {
    color: black;
    background-color: white;
    box-shadow: 10px 10px 5px rgb(0, 0, 0, 0.5); 
    margin-top: 0px;
    margin-right: 0px;
    padding-left: 10px;
    font-family: Arial, sans-serif;
    font-size: 35px;
}

body {
    background-color: lightgray;
    font-family: Arial, sans-serif;
}

#form {
    background-color: white;
    width: 25%;
    margin: 120px auto;
    padding: 50px;
    box-shadow: 10px 10px 5px rgb(0, 0, 0, 0.5);
    border-radius: 6px;
    text-align: center;
}

#form h2 {
    margin-top: 0;
    margin-bottom: 40px;
    text-align: center;
}

.btn {
    color: black;
    font-weight: bold;
    background-color: rgb(255, 255, 255);
    padding: 5px;
    text-align: center;
    margin-top: 15px;
}

.btn:hover{
    color: rgb(255, 255, 255);
    background-color:black ;
}

#form input {
    margin-bottom: 15px;
    padding: 5px
}

#form label {
    margin-top: 15px;
    margin-bottom: 5px;
}

#form .icon-container {
    display: flex;
    align-items: center;
}

#form .icon-container img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-bottom: 15px;
}

.line-input {
    border: none;
    outline: none;
    border-bottom: 1px solid black;
    background-color: transparent;
    padding: 10px;
    width: calc(100% - 30px);
    box-sizing: border-box;
    font-size: 16px;

}

.icon-container:focus-within img {
    transform: scale(1.4); 
    transition: transform 0.3s ease; 
}

body {
    background-color: rgb(211, 211, 211);
    font-family: Arial, sans-serif;
}

/* Ventana modal*/

.modal{
    font-family: Arial, sans-serif;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-text {
    font-size: 16px; 
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.btninv{
    color: black;
    font-weight: bold;
    background-color: rgb(255, 255, 255);
    padding: 5px;
    text-align: center;
    margin-top: 15px;
    display: inline;
}

.btninv:hover{
    color: rgb(255, 255, 255);
    background-color:black ;
}