/* Authentication Pages Styles */
:root {
  --green-primary: #0D9488;
  --green-dark: #0B7070;
  --green-light: #B2DFDB;
  --green-lighter: #E0F2F1;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --white: #ffffff;
  --off-white: #fafafa;
  --gray-border: #e5e7eb;
  --error: #ef4444;
  --success: #0D9488;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 99999;
  padding: 8px 16px;
  background: #0B6E6E;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Ensure header doesn't grow */
header {
  flex-shrink: 0;
}

/* Ensure footer doesn't grow and stays at bottom */
footer {
  flex-shrink: 0;
}

/* Ensure main content area grows to push footer down */
body > *:not(header):not(footer):not(script):not(style):not(.preloader) {
  flex: 1 0 auto;
}

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-lighter);
  padding: 20px;
  flex: 1 0 auto;
  min-height: 0; /* Allow flexbox to shrink if needed */
}

.auth-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 450px;
  position: relative;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group input {
  padding: 12px 16px;
  border: 2px solid var(--gray-border);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(22, 156, 10, 0.1);
}

.form-group input.error {
  border-color: var(--error);
}

.form-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: -4px;
  display: none;
}

.form-error.show {
  display: block;
}

.form-success {
  color: var(--success);
  font-size: 0.9rem;
  padding: 12px;
  background: var(--green-lighter);
  border-radius: 8px;
  text-align: center;
  display: none;
}

.form-success.show {
  display: block;
}

.auth-button {
  padding: 14px 24px;
  background: var(--green-primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  margin-top: 8px;
}

.auth-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 156, 10, 0.3);
}

.auth-button:active {
  transform: translateY(0);
}

.auth-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-links {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-border);
}

.auth-links a {
  color: var(--green-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-links a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--green-primary);
  text-decoration: none;
}

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

.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 24px;
  }

  .auth-header h1 {
    font-size: 1.5rem;
  }
}

/* ===================================================================
   Footer Styles (matching home page footer)
   =================================================================== */
.site-footer {
    position: relative;
    overflow: hidden;
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,sans-serif;
    margin-top: 0;
    flex-shrink: 0;
}

.footer-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    filter: blur(70px);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
    opacity: .45;
    background: radial-gradient(circle at 35% 35%,rgba(255,255,255,.9),rgba(255,255,255,0));
}

.footer-glow.g1 {
    top: -140px;
    left: -160px;
}

.footer-glow.g2 {
    bottom: -170px;
    right: -150px;
    background: radial-gradient(circle at 60% 50%,rgba(255,255,255,.8),rgba(255,255,255,0));
}

.footer-main {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg,#ffffff,#f5fff9);
    padding: 58px clamp(28px,5vw,74px) 50px;
    display: grid;
    gap: 50px clamp(42px,4vw,80px);
    grid-template-columns: repeat(4,minmax(200px,1fr));
    align-items: start;
    color: #234832;
    border-top: 1px solid rgba(0,128,0,.15);
}

.f-head {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 16px;
    font-size: .9rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #0f3c23;
}

.f-ic {
    width: 26px;
    height: 26px;
    stroke: #008000;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.f-ic circle,
.f-ic path {
    stroke: #008000;
    fill: none;
}

.footer-bottom {
    background: linear-gradient(90deg,#006d2c,#008835);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    align-items: center;
    padding: 14px clamp(26px,5vw,80px);
    font-size: .7rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.powered {
    flex: 1 1 auto;
    opacity: .95;
}

.footer-social-mini {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-social-mini a {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.12);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    transition: .4s;
}

.footer-social-mini a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%,rgba(255,255,255,.55),transparent 70%);
    opacity: 0;
    transition: .55s;
}

.footer-social-mini a:hover {
    background: rgba(255,255,255,.24);
}

.footer-social-mini a:hover::after {
    opacity: 1;
}

.footer-search {
    position: relative;
    display: flex;
    align-items: center;
}

.footer-search input {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    padding: 6px 10px 6px 30px;
    font-size: .72rem;
    border-radius: 7px;
    width: 155px;
    outline: none;
    transition: .35s;
}

.footer-search input:focus {
    background: rgba(255,255,255,.3);
    border-color: #fff;
}

.footer-search svg {
    position: absolute;
    left: 8px;
    width: 14px;
    height: 14px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

.footer-links a,
.footer-policies a {
    display: block;
    padding: 3px 0;
    font-size: .78rem;
    text-decoration: none;
    color: #165e36;
    position: relative;
    transition: color .25s;
}

.footer-links a::before,
.footer-policies a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #008000;
    transition: .35s;
}

.footer-links a:hover,
.footer-policies a:hover {
    color: #008000;
}

.footer-links a:hover::before,
.footer-policies a:hover::before {
    width: 100%;
}

.footer-location address {
    font-style: normal;
    font-size: .78rem;
    line-height: 1.55;
    margin: 0 0 14px;
    max-width: 240px;
}

.footer-hours {
    font-size: .78rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: #0f4a2a;
}

.footer-note {
    font-size: .68rem;
    opacity: .78;
}

.footer-sep {
    grid-column: 1/-1;
    height: 1px;
    background: linear-gradient(90deg,transparent,#c7a97f,transparent);
    opacity: .7;
}

.footer-contact {
    font-size: .78rem;
    line-height: 1.5;
}

.footer-contact a {
    color: #165e36;
    text-decoration: none;
    position: relative;
}

.footer-contact a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: .35s;
}

.footer-contact a:hover::after {
    transform: scaleX(1);
}

.footer-brand p {
    font-size: .82rem;
    line-height: 1.55;
    margin: 0 0 18px;
    max-width: 340px;
}

.f-block {
    display: flex;
    flex-direction: column;
}

@media (max-width:680px) {
    .footer-main {
        padding: 50px 34px 46px;
        grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-search {
        width: 100%;
    }

    .footer-search input {
        width: 100%;
    }
}

/* WhatsApp FAB — defined in styles.css */

