*{
    margin: 0;
    padding: 0;
}
html{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12pt;
    color: #333;
    text-align: center;
}
body{
   background-image: url('../images/backg.png');
    background-size: cover;
    background-position: right;
    overflow: hidden;
    min-height: 100vh;
}

nav{
    background-color: white;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    border-bottom: 3rem;
}
nav ul{
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
nav li{
    height: 50px;
}
nav a{
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #b91c1c;
}
nav a:hover{
    background-color: #f3f4f6;
    color: #b91c1c;
}
nav li:first-child{
    margin-right: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #b91c1c;
}
.sidebar{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.sidebar li{
    width: 100%;
}
.sidebar a{
    width: 100%;
}
.menu-button{
    display: none;
}


.wrapper{
    box-sizing: border-box;
    background-color: white;
    height: 100vh;
    width: max(40%, 600px);
    padding: 10px;
    border-radius: 0 20px 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
h1{
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
}
form{
    width: min(400px, 100%);
    margin-top: 20px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap : 10px;
}
form > div{
    width: 100%;
    display: flex;
    justify-content: center;
}
form label{
    flex-shrink: 0;
    height: 50px;
    width: 50px;
    background-color: #b91c1c;
    fill: white;
    color: white;
    border-radius: 10px 0 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 500;
} 
form input{
    box-sizing: border-box;
    flex-grow: 1;
    min-width: 0;
    height: 50px;
    padding: 1em;
    font: inherit;
    border-radius: 0 10px 10px 0;
    border: 2px solid #D9D9D9;
    border-left: none;
    background-color: #D9D9D9;
    transition: 150ms ease;
}
form input:hover{
    border-color: #b91c1c;
}
form input:focus{
    outline: none;
    border-color: #b91c1c;
    box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.2);
}

form button{
    margin-top: 10px;
    border: none;
    border-radius: 1000px;
    padding: .85em 4em;
    background-color: #b91c1c;
    color: white;
    font: inherit;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.1s ease;
}
form button:active{
    transform: scale(0.95);
}
a{
    text-decoration: none;
    color:#b91c1c;
}
a:hover{
    text-decoration: underline;
}
.menu-button{
    display: none;
}
@media (max-width: 1100px) {
    .wrapper{
        width: min(600px, 100%);
        border-radius: 0;
    }
}
form div.incorrect label{
    background-color: #f06272;
}
form div.incorrect input{
    border-color: #f06272;
}
#error-message{
    color:#f06272;
}
@media(max-width: 800px){
    .hideOnMobile{
        display: none;
    }
    .menu-button{
      display: block;  
    }
}
@media(max-width: 400px){
    .sidebar{
        width: 100%;
    }

}



  #toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #f44336; /* red default */
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
    transform: translateX(-50%);
  }

  #toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
  }

  #toast.success {
    background-color: #4CAF50;
  }

  #toast.error {
    background-color: #f44336;
  }

  @keyframes fadein {
    from { bottom: 0; opacity: 0; }
    to { bottom: 30px; opacity: 1; }
  }

  @keyframes fadeout {
    from { bottom: 30px; opacity: 1; }
    to { bottom: 0; opacity: 0; }
  }
