body {
    background: linear-gradient(to bottom right, #052946, #3c5261); /* Light blue gradient */
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  
  #mobile-login{
    display: none;
}

#mobile{
    display: none;
}

#header{
    color: #0A62A9;
    text-align: center;

}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 2;
    
}
  
div.card{
    margin: 2% auto;
    display: flex;
    width: 50%;
    background-color: #efefef23;
    border: none;
    border-radius: 5%;
    box-shadow: 10px 15px 15px rgba(0, 0, 0, 0.547);
}

form{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

form input[type=text], input[type=password],input[type=email],input[type=tel],select{
    font-size: 1em;
    font-weight: 400;
    width: 70%;
    padding: 7.5px 10px;
    border-radius: 7px;
    border: 0.5px solid #00000009;
    margin: 10px 0px;
    background-color: #b6b6b672;
    color: rgb(255, 255, 255);
    box-shadow: 2px 2px 5px rgba(84, 84, 84, 0.547);
}

input::placeholder {
    color: rgb(255, 255, 255);
    opacity: 1; /* Ensures full visibility */
    font-weight: 400;
  }

form button[type=submit]{
    font-weight: 500;
    width: 70%;
    padding: 10px 10px;
    border-radius: 10px;
    border: none;
    color: #000000;
    background: linear-gradient(to right, #cceeff, #3c5261); /* Initial gradient */
    background-size: 200% 100%; /* Make it twice as wide for animation room */
    background-position: left center;
    transition: background-position 1s ease, transform 0.3s ease; /* Smooth transition */
}

form button[type=submit]:hover {
    background-position: right center; /* Shift gradient to the right */
    transform: scale(1.1); /* Grows by 10% */
}

main a{
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    margin-top: 15px;
    transition: 1s;
}

.content {
    flex: 1; /* Pushes the footer to the bottom */
  }
  
  footer {
    font-size: 10px;
    display: flex;
    justify-content: space-between;

    color: white;
    text-align: center;
    padding: 3px;
  }

  img{
    max-width: 47%;
    height: auto;
    display: block;
  margin: 0 auto;
}

#bottom{
    width: 100%;
    text-align: center;
}

#bottom a{
    font-weight: 500;
    color: #dddddd;
}


#buttons > a:hover {
    transform: scale(1.1); /* Grows by 10% */
}



body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f5f5f5;
}

.input-display {
    width: 220px;
    height: 40px;
    margin-bottom: 15px;
    font-size: 20px;
    text-align: center;
    border: 2px solid #007bff;
    border-radius: 5px;
    padding: 5px;
    background: white;
}

.keyboard-container {
    display: grid;
    grid-template-columns: repeat(3, 60px);
    gap: 10px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.key {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.key:hover {
    background: #0056b3;
}

.button-container {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.btn {
    width: 100px;
    height: 40px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-submit {
    background: #28a745;
    color: white;
}

.btn-submit:hover {
    background: #218838;
}

.btn-clear {
    background: #dc3545;
    color: white;
}

.btn-clear:hover {
    background: #c82333;
}

.login{

margin-top: 30%;
font-weight: 500;
width: 50%;
padding: 10px 10px;
border-radius: 10px;
border: none;
color: #000000;
background: linear-gradient(to right, #cceeff, #3c5261); /* Initial gradient */
background-size: 200% 100%; /* Make it twice as wide for animation room */
background-position: left center;
transition: background-position 1s ease, transform 0.3s ease; /* Smooth transition */
}

.login:hover{
    background-position: right center; /* Shift gradient to the right */
    transform: scale(1.1); /* Grows by 10% */ 
    color: #fff;
}

.error{
    color: rgb(238, 70, 70);
}
  /* MOBILE VERSION */

@media screen and (max-width: 600px) {
 
        div.card{
            margin: 2% auto;
            display: flex;
            width: 99%;
            border: none;
            background-color: #efefef23;
            border-radius: 5%;
            box-shadow: 10px 15px 15px rgba(0, 0, 0, 0.547);
        }

        form input[type=text], input[type=password],input[type=email],input[type=tel],select{
            font-size: 0.85em;
            font-weight: 400;
            width: 85%;
        }

        form button[type=submit]{
            width: 85%;
        }

        img{
            max-width: 67%;
            height: auto;
            display: block;
  margin: 0 auto;
        }

        #bottom {
            font-size: 0.75em;
            width: 100%;
            text-align: center;
        }

        footer {
            flex-direction: column;
        }
}