/* Me2You - Login page (auth/login.php)
   Moved from the page inline <style> block. Auth card, banners,
   remember/forgot row, divider. Uses brand tokens. */

/* -- Auth card layout ----------------------------------- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--ink-50, #FAF6EF);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--paper, #fff);
  border-radius: 20px;
  border: 1px solid var(--ink-200, #E7DFD5);
  box-shadow: 0 6px 18px rgba(46, 33, 22, 0.08);
  padding: 40px 32px 36px;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 32px 20px 28px;
    border-radius: 16px;
  }
}

/* -- Logo ----------------------------------------------- */
.auth-logo {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  object-fit: contain;
}

/* -- Heading -------------------------------------------- */
.auth-heading {
  font-family: 'Quicksand', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink-900, #1F1A17);
  text-align: center;
  margin: 0 0 4px;
}

.auth-subtext {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: var(--ink-500, #6B5E55);
  text-align: center;
  margin: 0 0 28px;
}

/* -- Error / success banners ---------------------------- */
.auth-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.4;
}

.auth-banner--error {
  background: var(--danger-100, #FCE2DD);
  color: #8C2A1F;
  border: 1px solid #F0C4BD;
}

.auth-banner--success {
  background: var(--success-100, #DDF1E4);
  color: #1E6E3E;
  border: 1px solid #B4DCC3;
}

.auth-banner svg {
  flex-shrink: 0;
}

/* -- Input groups --------------------------------------- */
.auth-field {
  margin-bottom: 16px;
}

.auth-label {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-700, #3D342E);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400, #948578);
  pointer-events: none;
  display: flex;
}

.auth-input-wrap input {
  width: 100%;
  padding: 12px 14px 12px 44px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  color: var(--ink-900, #1F1A17);
  background: var(--ink-50, #FAF6EF);
  border: 1.5px solid var(--ink-300, #C9BEB3);
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.auth-input-wrap input:focus {
  border-color: var(--brand-orange, #F89A1F);
  box-shadow: 0 0 0 3px rgba(248, 154, 31, 0.15);
  background: var(--paper, #fff);
}

.auth-input-wrap input::placeholder {
  color: var(--ink-400, #948578);
}

/* -- Password toggle button ---------------------------- */
.pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  color: var(--ink-400, #948578);
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: color 0.15s ease;
}

.pw-toggle:hover {
  color: var(--ink-700, #3D342E);
}

.pw-toggle:focus-visible {
  outline: 2px solid var(--brand-orange, #F89A1F);
  outline-offset: 2px;
}

/* Password reveal icons: the "hide" icon starts hidden, then the toggle
   JS swaps inline display between the two. Replaces inline style="display:none". */
.pw-toggle .eye-closed {
  display: none;
}

/* -- Remember / forgot row ------------------------------ */
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 14px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ink-700, #3D342E);
  font-weight: 600;
}

.auth-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-orange, #F89A1F);
  border-radius: 4px;
  cursor: pointer;
}

.auth-forgot {
  font-weight: 600;
  color: var(--brand-orange-700, #C76B0F);
  border-bottom: none;
}

.auth-forgot:hover {
  color: var(--brand-orange-600, #E8851A);
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

/* -- Submit button -------------------------------------- */
.auth-btn {
  display: block;
  width: 100%;
  padding: 14px;
  font-family: 'Quicksand', 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--brand-orange, #F89A1F);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  letter-spacing: 0.01em;
}

.auth-btn:hover {
  background: var(--brand-orange-600, #E8851A);
  box-shadow: 0 4px 14px rgba(248, 154, 31, 0.35);
}

.auth-btn:active {
  transform: scale(0.98);
  background: var(--brand-orange-700, #C76B0F);
}

.auth-btn:focus-visible {
  outline: 2px solid var(--brand-orange-700, #C76B0F);
  outline-offset: 2px;
}

/* -- Divider -------------------------------------------- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ink-200, #E7DFD5);
}

.auth-divider span {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-400, #948578);
  text-transform: lowercase;
}

/* -- Footer link ---------------------------------------- */
.auth-footer {
  text-align: center;
  font-size: 14px;
  color: var(--ink-500, #6B5E55);
  margin: 0;
}

.auth-footer a {
  font-weight: 700;
  color: var(--brand-orange-700, #C76B0F);
}

.auth-footer a:hover {
  color: var(--brand-orange, #F89A1F);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
