/* ===== VARIABLES & RESET (Coffee Theme) ===== */
:root {
  /* Coffee palette repurposed via existing vars (no class changes) */
  --red:        #c58a54;     /* caramel */
  --red-dark:   #6f4e37;     /* brew */
  --accent:     #ffd39b;     /* honey foam */
  --bg-light:   #f7efe9;     /* latte foam */
  --text-dark:  #3a2a20;     /* espresso ink */
  --text-light: #fff;
  --radius:     12px;
  --shadow:     0 14px 40px rgba(43, 26, 20, 0.18);
  --transition: .25s ease;

  /* Extra tokens (optional use) */
  --espresso:   #2b1a14;
  --roast:      #4a2e20;
  --brew:       #6f4e37;
  --latte:      #b79274;
  --cream:      #fdf7f1;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1200px 600px at -10% -20%, rgba(197,138,84,0.08), transparent 60%),
    radial-gradient(900px 500px at 110% 120%, rgba(111,78,55,0.08), transparent 60%),
    var(--bg-light);
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--red-dark); transition: color var(--transition); }
a:hover { color: var(--red); }

/* ===== SITE HEADER ===== */
.site-header {
  background: linear-gradient(135deg, #8b6546, #301809);
  color: #eee;
  box-shadow: 0 8px 24px rgba(43,26,20,.12);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.site-header .logo img { max-height: 40px; }
.main-nav ul { list-style: none; display: flex; gap: 1rem; }
/* remove underline from nav links */
.main-nav a {
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem .8rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform .15s ease;
  text-decoration: none;
}
.main-nav a:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }

/* ===== LOGIN SECTION ===== */
.login-section { flex: 1; padding: 3rem 0; }
.container { width: 90%; max-width: 960px; margin: 0 auto; }

/* Coffee paper card */
.login-card {
  background:
    radial-gradient(600px 400px at 85% 15%, rgba(197,138,84,0.08), transparent 60%),
    linear-gradient(180deg, var(--cream), #fffaf4);
  border: 1px solid rgba(74,46,32,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  min-height: 480px;
}
@media (max-width:900px){ .login-card { flex-direction: column; } }

/* — Left Panel */
.card-left {
  flex: 1;
  background:
    radial-gradient(80% 120% at 20% 0%, rgba(255,255,255,0.06) 0%, transparent 60%),
    linear-gradient(135deg, #8b6546, #301809);
  color: #eee;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* clip glass effect */
}
/* animated dot pattern (foam speckles) */
.card-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(rgba(255,255,255,0.08) 1px, transparent 2px) 0 0/26px 26px,
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 2px) 8px 8px/32px 32px;
  animation: moveDots 22s linear infinite;
  opacity:.9;
  mix-blend-mode: screen;
}
@keyframes moveDots {
  from { background-position: 0 0, 8px 8px; }
  to   { background-position: 260px 0, 296px 8px; }
}
/* glass effect overlay */
.card-left::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.0), rgba(255,255,255,0.18), rgba(255,255,255,0.0));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transform: skewX(-25deg);
  animation: glassSlide 3.5s ease-in-out infinite;
}
@keyframes glassSlide {
  0%   { transform: translateX(0) skewX(-25deg); opacity:.0; }
  35%  { opacity:.55; }
  50%  { transform: translateX(180%) skewX(-25deg); opacity:.0; }
  100% { transform: translateX(180%) skewX(-25deg); opacity:.0; }
}
.welcome-content { z-index: 1; text-align: center; color: #fff; padding: 0 1rem; }
.welcome-content h2 {
  font-size: 2.5rem;
  margin-bottom: .5rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,.35);
  letter-spacing:.2px;
}
.welcome-content p { font-size: 1.1rem; margin-bottom: 1.5rem; color: #f6efe8; }
.icon-bounce i {
  font-size: 3rem;
  color: var(--red);
  text-shadow: 0 2px 8px rgba(197,138,84,.35);
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* — Right Panel */
.card-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(600px 400px at 85% 15%, rgba(197,138,84,0.08), transparent 60%),
    linear-gradient(180deg, var(--cream), #fffaf4);
}

/* Keep the login form area transparent as requested */
.form-inner {
  width: 100%;
  max-width: 360px;
  padding: 2rem;
  text-align: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.form-inner h1 { color: var(--red-dark); margin-bottom: 1rem; }

/* Alerts tuned to coffee tones */
.alert-box,
.success-box {
  text-align: left;
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  border: 1px solid rgba(74,46,32,.12);
  box-shadow: 0 4px 12px rgba(43,26,20,.06);
}
.alert-box  { background: #fff0ea; color: #8b3d2a; }
.success-box{ background: #eefaf0; color: #2e7d32; }
.alert-box i, .success-box i { margin-right: .4rem; vertical-align: middle; }

/* Inputs */
.form-group { margin-bottom: 1rem; }
.form-group input {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid rgba(74,46,32,.18);
  border-radius: var(--radius);
  transition: border var(--transition), box-shadow var(--transition), transform .05s ease;
  background: #fffdfa;
  color: var(--text-dark);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.form-group input::placeholder { color: rgba(58,42,32,.6); }
.form-group input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(197,138,84,.20);
}

/* reCAPTCHA spacing */
.recaptcha-group { margin-bottom: 1rem; }

/* Primary button (caramel → roast) */
.btn-login {
  background: linear-gradient(180deg, var(--red), #ad6a34);
  color: #fff;
  border: 1px solid rgba(90,65,48,.18);
  padding: .9rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(197,138,84,.28), inset 0 1px 0 rgba(255,255,255,.25);
  cursor: pointer;
  transition: background var(--transition), transform .15s, filter .15s;
}
.btn-login:hover { filter: brightness(1.02); transform: translateY(-2px); }
.btn-login:active { transform: translateY(-1px); }

/* — Link Buttons */
.links { margin-top: 1.5rem; display: flex; justify-content: center; gap: 1rem; }
/* force single line */
.nowrap { white-space: nowrap; }
.btn-link {
  display: inline-block;
  padding: .5rem 1rem;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  color: var(--red-dark);
  font-weight: 700;
  background: #fff;
  transition: background var(--transition), color var(--transition), transform .15s;
  box-shadow: 0 4px 10px rgba(43,26,20,.06);
}
.btn-link:hover { background: var(--red); color: #fff; transform: translateY(-1px); }

/* ===== BANNER ===== */
.banner-row { text-align: center; margin-top: 1.5rem; }
.banner {
  display: inline-block;
  margin: .6rem;
  border-radius: 10px;
  background: #fffdfa;
  border: 1px solid rgba(74,46,32,.10);
  box-shadow: 0 6px 16px rgba(43,26,20,.08);
  padding: .25rem .5rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(135deg, #8b6546, #301809);
  color: #eee;
  text-align: center;
  padding: .8rem 0;
  font-size: .9rem;
  box-shadow: 0 -6px 18px rgba(43,26,20,.10);
}
.site-footer a { color: var(--accent); transition: color var(--transition); }
.site-footer a:hover { color: #fff; }

/* ===== Accessibility: reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .card-left::before,
  .card-left::after,
  .icon-bounce i { animation: none !important; }
}
