/* Modern fullscreen auth layout (centered card over photo) */

:root {
  --auth-card-bg: #fff;
  --auth-card-shadow: 0 12px 32px rgba(0,0,0,.25);
  --auth-border: #e5e7eb;
  --auth-input-border: #cbd5e1;
  --auth-input-focus: #7c3aed; /* accent */
  --auth-primary: #4c1d95;     /* button bg */
  --auth-primary-hover: #3b1680;
  --auth-link: #4c1d95;
  --auth-error: #b91c1c;
}

/* Page background */
.auth-hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url("/img/mall_large.jpg") center/cover no-repeat fixed;
  position: relative;
  padding: 20px 0;          /* top & bottom breathing room */
  box-sizing: border-box;
}

/* Dark overlay to improve contrast */
.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* Auth card */
.auth-card {
  position: relative; /* sits above overlay */
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--auth-card-bg);
  border-radius: 16px;
  box-shadow: var(--auth-card-shadow);
  padding: 32px 28px;
  text-align: left;
}

/* Brand / title */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.auth-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 8px 0 18px;
}

/* Form */
.auth-form { display: grid; gap: 16px; }
.auth-label { font-weight: 600; margin-bottom: 6px; }

.auth-input {
  width: 100%;
  border: 1px solid var(--auth-input-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  background: #fff;
}
.auth-input:focus {
  border-color: var(--auth-input-focus);
  box-shadow: 0 0 0 3px rgba(124,58,237,.18);
}

.auth-inputwrap { position: relative; }
.auth-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.auth-eye svg {
  width: 20px;
  height: 20px;
  opacity: .7;
}
.auth-eye:hover svg { opacity: 1; }

/* Links / meta row */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}
.auth-link {
  color: var(--auth-link);
  text-decoration: none;
  font-weight: 600;
}
.auth-link:hover { text-decoration: underline; }

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

/* Button */
.auth-btn {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 0;
  color: #fff;
  background: var(--auth-primary);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s ease, transform .02s ease;
}
.auth-btn:hover { background: var(--auth-primary-hover); }
.auth-btn:active { transform: translateY(1px); }

.auth-subrow {
  margin-top: 14px;
  font-size: .95rem;
}
.auth-subrow a {
  color: var(--auth-link);
  font-weight: 700;
}

/* Error message */
.auth-msg {
  margin-top: 8px;
  min-height: 1.2rem;
  color: var(--auth-error);
  font-size: 0.9rem;
}

/* Centered logo above form */
.auth-brand--centered {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.auth-logo {
  height: 70px;
  width: auto;
}

/* -------- Optional Tweaks -------- */

/* On mobile, avoid janky scroll by removing fixed background */
@media (max-width: 768px) {
  .auth-hero {
    background: url("/img/mall_large.jpg") center/cover no-repeat;
    padding: 15px 0; /* slightly tighter on small screens */
  }
  .auth-hero::before {
    background: rgba(0,0,0,0.55);
  }
}

/* Adjust card padding for very small screens */
@media (max-width: 420px) {
  .auth-card { padding: 24px 18px; }
}
