/* ---------- auth.css (compact adjustments) ---------- */

/* keep your existing background + overlay rules (unchanged) */
/* Entire page background (image path relative to this file) */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: url('../images/bg_Yes.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* overlay */
.auth-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 25, 0.55);
  z-index: 0;
}

/* wrapper/card sizing (make card narrower on wide screens) */
.auth-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 680px;    /* increase for wider but card-inner will be compact */
  padding: 20px;
  display: flex;
  justify-content: center;
}

/* Card styling: reduce padding a bit for compact look */
.auth-card {
  background: rgba(0, 0, 0, 0.65);
  border-radius: 12px;
  padding: 24px 28px;  /* reduced */
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  width: 100%;
  max-width: 640px;
}

/* Heading slightly smaller on wide */
.auth-card h3 {
  text-align: center;
  margin: 0 0 12px 0;
  font-size: 20px;      /* smaller */
  letter-spacing: 0.4px;
  font-weight: 700;
}

/* ---------- Compact inputs & button ---------- */

/* target only within auth-card so other forms unaffected */
.auth-card .form-control {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 8px 12px;      /* reduced padding */
  border-radius: 8px;
  box-shadow: none;
  height: 40px;           /* fixed compact height */
  font-size: 14px;
  line-height: 1.2;
}

/* textarea slightly taller but still compact */
.auth-card textarea.form-control {
  height: auto;
  min-height: 90px;
  padding: 10px 12px;
}

/* placeholder color */
.auth-card .form-control::placeholder { color: rgba(255,255,255,0.6); }

/* focus ring subtle */
.auth-card .form-control:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 75, 92, 0.06);
  background: rgba(255,255,255,0.08);
}

/* compact button — important: high specificity to override bootstrap */
.auth-card .btn-auth,
.auth-card .btn.btn-auth {
  display: block;
  width: 100%;
  padding: 10px 12px;     /* slightly smaller */
  background: #ff4b5c;
  color: #fff !important;
  border: none;
  border-radius: 8px;     /* slightly smaller radius */
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(255,75,92,0.12);
  transition: transform .08s ease, box-shadow .12s ease, background .12s ease;
  height: 42px;
  line-height: 1;
}

.auth-card .btn-auth:hover,
.auth-card .btn-auth:focus {
  background: #e43f52;
  transform: translateY(-1px);
}

/* tighten spacing between elements */
.auth-card .mb-3 {
  margin-bottom: 10px;
}

/* small link text */
.small-text { margin-top: 10px; font-size: 0.9rem; }

/* alert inside card: slightly tighter */
.auth-card .alert { margin-bottom: 8px; padding: 8px 12px; }

/* Responsive tweaks */
@media (max-width: 480px) {
  .auth-card { padding: 18px; border-radius: 10px; max-width: 92vw; }
  .auth-card h3 { font-size: 18px; }
  .auth-card .form-control { height: 40px; font-size: 14px; }
  .auth-card textarea.form-control { min-height: 80px; }
  .auth-card .btn-auth { padding: 10px; height: 40px; font-size: 14px; }
}

/* Utility: if anything still forcing huge size, these high-specificity rules override */
.auth-card input, .auth-card textarea, .auth-card button {
  max-width: 100%;
  box-sizing: border-box;
}/* STRONG override for auth page controls — put at end of auth.css */

/* ===== final auth page tidy overrides - put at END of auth.css ===== */

/* ensure auth body class is present (header.php sets it) */
body.auth-bg {
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* wrapper centers perfectly and controls card width */
.auth-bg-overlay { /* keep existing overlay rules */ }
.auth-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 520px;      /* make card narrower so inputs look balanced */
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* card */
.auth-card {
  width: 100%;
  max-width: 520px;
  background: rgba(0,0,0,0.62);
  border-radius: 12px;
  padding: 22px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,0.48);
}

/* header */
.auth-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

/* compact controls — specific and last in file */
.auth-card .form-control {
  height: 40px;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.06);
  box-sizing: border-box;
}

/* textarea */
.auth-card textarea.form-control {
  min-height: 88px;
  padding: 10px 12px;
}

/* button */
.auth-card .btn-auth {
  display: block;
  width: 100%;
  height: 42px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  background: #ff4b5c;
  border: none;
  color: #fff;
  box-shadow: 0 8px 18px rgba(255,75,92,0.14);
}

/* tighten vertical spacing inside card */
.auth-card .mb-3 { margin-bottom: 10px; }

/* mobile adjustments */
@media (max-width: 520px) {
  .auth-wrapper { max-width: 92vw; padding: 14px; }
  .auth-card { padding: 16px; }
  .auth-card .form-control { height: 40px; font-size: 14px; }
  .auth-card textarea.form-control { min-height: 80px; }
  .auth-card .btn-auth { height: 40px; }
}


