*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,body{
    height: 100%;
}
body{
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-image: url('../img/background.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 15px;
    background-color: rgb(18, 29, 47);
    margin-bottom: 8%;
    flex-wrap: wrap;
}
nav a{
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

nav img{
    height: auto;
    max-width: 150px;
}
nav a:hover{
    text-decoration: underline;
}

.container{
    display: flex;
    flex: 1;
    justify-content: center;
    padding: 18px;
    align-items: center;
}
form{
    background: rgba(245, 245, 245, 0.505);
    border-radius: 8px;
    padding: 35px 30px;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
}

form h2{
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

input[type='email'],[type='password'],[type='text']{
    padding: 8px;
    font-size: 1.1rem;
    border-radius: 8px;
    width: 100%;
    border: 1px solid #ccc;
}
button{
    margin-top: 20px;
    padding: 10px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    background-color: rgb(0, 0, 55);
    color: white;
    font-weight: bold;
}
button:hover{
    background-color: rgba(0, 0, 55, 0.47);
}

p{
    margin-top: 10px;
    margin-left: 1px;
    font-weight: bold;
    
}

p input[type='checkbox']{
    margin-left: 5px;
    vertical-align: middle;
}
 p a{
    color: black;
    font-weight: bold;
    margin-left: 2px;
}

.dialog{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.dialogcontent{
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  width: 320px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.dialogaction {
  margin-top: 1rem;
  display: flex;
  justify-content: space-around;
}

.dialogaction button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 50%;
  margin: 3px;
}

.dialogaction .cancel {
  background: #ddd;
}

.dialogaction .confirm {
  background: #e74c3c;
  color: white;
}

.toast{
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #323232;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(20px);
  z-index: 3000;
}

.toast.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.toast.success {
  background: #27ae60;
}


.toast.error {
  background: #e74c3c;
}


.toast.warning {
   background: #d9e73c;
}

@media(max-width: 680px){
    .container{
        margin-top: 100px;
        max-width: 100%;
        padding: 14px;
    }
    nav img{
        max-width: 150px;
    }
    button{
        font-size: 0.8rem;
        padding: 7px;
    }
    nav{
      justify-content: center;
    }
    nav div{
      display: none;
    }
}

.passwordcontainer{
  display: inline-block;
  position: relative;
  width: 100%;
}
.passwordcontainer .passwordeye{
  right: 10px;
  top: 50%;
  cursor: pointer;
  font: 18px;
  transform: translateY(-50%);
  position: absolute;
}
.passwordcontainer .passwordeye.hidden{
  display: none;
}

#password-checklist {
  list-style: none;
  margin: 5px 0 15px 0;
  padding: 0;
  font-size: 0.9rem;
}

#password-checklist li {
  margin-bottom: 4px;
  padding-left: 20px;
  position: relative;
}

#password-checklist li::before {
  content: "✖";
  position: absolute;
  left: 0;
  color: red;
}

#password-checklist li.valid::before {
  content: "✔";
  color: green;
}

#password-checklist li.valid {
  color: green;
}

#password-checklist li.invalid {
  color: red;
}