/* ----------------------------
   FORMAT FOR LOGIN PAGE
----------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Exo 2", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(
    135deg,
    #eef3f8 0%,
    #e6edf5 100%
  );
  color: #1f2933;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----------------------------
   Layout
----------------------------- */
.auth-wrapper {
  width: 100%;
  padding: 1.5rem;
}

.auth-card {
  max-width: 420px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2.25rem;
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.04);
}

/* ----------------------------
   Header
----------------------------- */
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header img {
  max-width: 250px;
  height: auto;
  margin-bottom: 0rem;
}

.auth-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 0.4rem;
}

.auth-header p {
  font-size: 0.95rem;
  color: #64748b;
}

/* ----------------------------
   Form
----------------------------- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
}

.form-group input {
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ============================
   PASSWORD VISIBILITY (FINAL)
============================ */

/* Wrapper */
.password-wrapper {
  position: relative;
  width: 100%;
}

/* Password input */
.password-wrapper input {
  width: 100%;
  padding-right: 2.75rem; /* space for eye icon */
}

/* Toggle button */
.toggle-password {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
}

/* Icons */
.toggle-password svg {
  width: 20px;
  height: 20px;
}

/* Default state: password hidden */
.toggle-password .icon-eye {
  display: block;
}

.toggle-password .icon-eye-off {
  display: none;
}

/* Password visible */
.toggle-password.is-visible .icon-eye {
  display: none;
}

.toggle-password.is-visible .icon-eye-off {
  display: block;
}

/* ----------------------------
   Submit button
----------------------------- */
.auth-submit {
  margin-top: 0.5rem;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    #2563eb 0%,
    #1d4ed8 100%
  );
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.auth-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* ----------------------------
   Footer
----------------------------- */
.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-footer a {
  font-size: 0.85rem;
  color: #2563eb;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ----------------------------
   Responsive tweaks
----------------------------- */
@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.5rem;
    border-radius: 14px;
  }
}

