@font-face {
  font-family: 'Roboto';
  src: url('https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxM.woff2') format('woff2'),
       url('https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxO.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* Prevent page scroll */
body {
  font-family: 'Roboto', sans-serif;
  background: rgba(224, 229, 232, 1);
  padding: 0;
  max-height: 100vh;
  margin: 0;
}

* {
  box-sizing: border-box;
}

::selection {
  background: rgba(22, 60, 133, 1);
  color: #fff;        
}

.logo {
  width: 100px;
      height: 20px;
      margin: 20px auto 20px auto;
      text-align: center;
      margin-left: 30px;
}


.logo img {
  width: 150px;
  margin-bottom: 30px;
  /* width: 150px;
  margin-bottom: 10px;
  display: block;
  margin: 10px auto; */
}

.container {
  margin: 20px auto 0 auto;
  width: 500px;
  height: fit-content;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  animation: fadeSlide 1.5s ease forwards;
  padding: 32px;
  gap: 16px;
  opacity: 1;
}


.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding-right: 40px;
}

.toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    transition: 0.3s;
}

.toggle-pass:hover {
    color: rgba(22, 60, 133, 1);
}

.have-account { color: #9a9999; }
.error { color: red; font-size: 0.8rem; }


.name{
  display: flex;
  flex-wrap: nowrap;
    gap: 2%;
}
.nameinput{
  width: 49%;
  /* margin-right: 4%; */
}

#password-message {
  display: none;
  font-size: 14px;
  margin-top: 6px;
}
#password-message.error {
  color: #d9534f;
  display: block;
}
#password-message.success {
  color: #28a745;
  display: block;
}

.password-wrapper {
  position: relative;
  display: block;
  color: black;
}

@keyframes fadeSlide {
  from {
    opacity: 0.2;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 780px) {
  .container {
    padding: 20px;
    width: 354px;
    border-radius: 10px;
    gap: 8px;
  }
}

/* Toast Notification */
#toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(22, 60, 133, 1);
    color: white;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(22, 60, 133, 0.4);
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    font-size: 15px;
    font-weight: 500;
    min-width: 300px;
}

#toast.show {
    display: flex;
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#toast.hide {
    animation: slideOut 0.3s ease-in forwards;
}

#toast .toast-icon {
    font-size: 22px;
    display: flex;
    align-items: center;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Mobile responsive toast */
@media (max-width: 480px) {
    #toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        font-size: 14px;
        padding: 14px 18px;
    }
}

/* Password strength indicator */
#password-strength {
    display: none;
    height: 4px;
    width: 100%;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

#password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

#password-strength.weak #password-strength-bar {
    width: 33%;
    background: #e63946;
}

#password-strength.medium #password-strength-bar {
    width: 66%;
    background: #ff9800;
}

#password-strength.strong #password-strength-bar {
    width: 100%;
    background: #28a745;
}

#password-strength-text {
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

/* Enhanced button loading state */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Input validation states */
input.valid {
    border-color: #28a745;
}

input.invalid {
    border-color: #e63946;
}

.main-color {
    color: rgba(22, 60, 133, 1);
    font-weight: bold;
    text-decoration: none;
}


@media (max-width: 480px) {
  /* .logo {
    margin: 10px auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .logo img {
    margin: 0 auto;
    display: block;
  } */
  .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 30px auto 40px auto;
        width: 100%;
      }
      .logo img {
        margin: 0 auto;
        display: block;
      }
  .container {
    padding: 15px;
    width: 93vw;
    min-width: 200px;
    border-radius: 10px;
    gap: 24px;
  }
}

/* Add this for desktop/laptop screens */
@media (min-width: 781px) {
  .container {
    margin-top: 20px;
  }
}

    h1, p, h4 {
      text-align: center;
    }

    p {
      padding: 0 20px;
      font-size: 13px;
      margin-top: -10px;
    }

    button {
      background: rgba(22, 60, 133, 1);
      color: aliceblue;
      font-size: 20px;
      cursor: pointer;
    }

    /* a {
      color: aliceblue;
      text-decoration: none;
    } */

    .btn {
      display: block;
      margin: 20px auto;
      padding: 10px 20px;
      width: 100%;
      border-radius: 10px;
      border: 2px solid rgba(22, 60, 133, 1);
      background: rgba(22, 60, 133, 1);
      transition: transform 1s ease;
    }

    .btn:hover {
      background: white;
      color: rgba(22, 60, 133, 1);
      border: 2px solid rgba(22, 60, 133, 1);
    }

    .create {
      color: rgba(22, 60, 133, 1);
      text-decoration: none;
    }

    input {
      width: 100%;
      height: 46px;
      border-radius: 10px;
      padding: 12px;
      border: 1.1px solid rgba(111, 150, 209, 1);
      margin-bottom: 10px;
      transition: border 0.3s ease, box-shadow 0.3s ease;
    }

    input:focus {
      border: 1.5px solid rgba(22, 60, 133, 1);
      box-shadow: 0 0 8px rgba(22, 60, 133, 0.5);
      outline: none;
    }


    label {
      font-weight: bold;
      display: block;
      margin-top: 5px;
      margin-bottom: 5px;
    }
    .note{
        display: block;
        color: rgba(0, 0, 0, 0.5); 
        font-size: 12px; 
        margin-top: -10px;
    }

.error {
  color: #e63946;
  font-size: 13px;
  margin-top: 2px;  
  margin-bottom: 0;  
  display: block;
}

