/* ===== Base Reset ===== */
* {
  box-sizing: border-box;
}


  /* body {
    display: flex;
    align-items: center;
    justify-content: center;
  } */

@media (max-width: 899px) {
  html, body {
  margin: 0;
  height: 100%;
  /* overflow: hidden;  */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8fafc;
  
  

  }

}





/* Fade in/out animation */
@keyframes fadePulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}


/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px; /* adjust if needed */
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  /* z-index: 1000; */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.site-header img {
  height: 55px;
  width: auto;
}

/* Layout */

.auth-layout {
  min-height: 100vh;
  
  display: flex;
  flex-direction: column; /* Mobile default */
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px;
  /* background: #eceff1; */
}

/* Intro section */
.auth-intro {
  text-align: center;
  max-width: 470px;
}

.auth-intro h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #000000;
}

.auth-intro p {
  color: #546e7a;
  line-height: 1.6;
}

/* Login card */
.login-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  width: 100%;
  max-width: 470px;
  text-align: center;
}

.login-card h2 {
  margin-bottom: 6px;
}

.login-card input {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border-radius: 8px;
  border: 1px solid #cfd8dc;
  font-size: 0.95rem;
}

.login-card input:focus {
  outline: none;
  border-color: #1976d2;
}

.login-card button {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #1976d2;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.login-card button:hover {
  background: #1565c0;
}

/* Desktop layout */
@media (min-width: 900px) {
  .auth-layout {
    flex-direction: row;
    justify-content: space-between;
    padding: 60px;
  }

  .auth-intro {
    text-align: left;
  }
}


/* ===== Loader ===== */
.loader {
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Error */
.form-error {
  font-size: 13px;
  color: #dc2626;
  text-align: center;
  min-height: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .auth-intro {
    text-align: center;
  }

  .auth-intro p {
    margin: 0 auto;
  }

  .login-container {
    margin: 0 auto;
  }
}



.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  width: 100%;
  padding-right: 42px; /* space for icon */
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.1rem;
  color: #607d8b;
  user-select: none;
}

.toggle-password:hover {
  color: #263238;
}


