/* ==============================
   PAGE CENTER WRAPPER
================================ */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  /* min-height: calc(100vh - 80px);  */
  padding: 30px;
}

/* ==============================
   AUTH CARD
================================ */
.auth-container {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  padding: 35px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0px 6px 25px rgba(0, 0, 0, 0.10);
}

/* ==============================
   TEXT
================================ */
.auth-container h2 {
  margin-bottom: 6px;
  color: #111;
  font-weight: 700;
}

.sub-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
}

/* ==============================
   INPUT BOX
================================ */
.input-box {
  position: relative;
  margin-bottom: 18px;
}

.input-box ion-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  font-size: 18px;
  color: #888;
}

.input-box input {
  width: 100%;
  padding: 12px 12px 12px 12px;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  font-size: 15px;
  background: #fafafa;
  transition: 0.3s ease;
}

.input-box input:focus {
  border-color: hsl(353, 100%, 55%);
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 91, 109, 0.3);
  outline: none;
}

/* ==============================
   PASSWORD TOGGLE
================================ */
.password-box {
  position: relative;
}

.password-box .toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #666;
  user-select: none;
}

/* ==============================
   BUTTON
================================ */
.auth-btn {
  width: 100%;
  background: hsl(353, 100%, 65%);
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 10px;
  transition: 0.3s ease-in-out;
}

.auth-btn:hover {
  transform: translateY(-2px);
  background: hsl(353, 100%, 75%);
}

/* ==============================
   SWITCH TEXT
================================ */
.switch-text {
  margin-top: 18px;
  font-size: 14px;
}

.switch-text a {
  color: hsl(353, 100%, 60%);
  font-weight: 600;
  text-decoration: underline;
}

.switch-text a:hover {
  text-decoration: underline;
}

/* ==============================
   MOBILE OPTIMIZATION
================================ */
@media (max-width: 480px) {
  .auth-container {
    padding: 24px;
  }

  .auth-container h2 {
    font-size: 22px;
  }

  .input-box input {
    font-size: 16px; /* prevent iOS zoom */
  }

  .auth-btn {
    font-size: 16px;
  }
}

.auth-message {
    padding: 10px 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
    transition: opacity 0.5s ease, transform 0.5s ease;
    font-size: 14px;
}

.success-message {
    background-color: #e6ffed;
    color: #028a0f;
    border: 1px solid #028a0f;
}

.error-message {
    background-color: #ffe5e5;
    color: #b00020;
    border: 1px solid #b00020;
}

.terms-box {
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
}

.terms-box a {
    color: #007bff;
    text-decoration: underline;
}
