/*
 * Friends login screen -- "candlelight & brass" arrival experience.
 *
 * Scoped safely: this file is only ever linked from layouts/auth2.blade.php,
 * so a bare `body` selector here can't leak onto any other screen.
 *
 * Everything below is hand-written CSS rather than tw-* utility classes.
 * The admin app's Tailwind bundle (public/css/tailwind/app.css) is static
 * and pre-generated with no build step -- it only contains rules for
 * classes some template already used at the time it was built. New layout
 * ideas (a two-panel login card, brand colors that aren't in the stock
 * palette) need real selectors we control end to end, so this page defines
 * its own small set of classes instead of guessing at what the bundle
 * might already contain. Fraunces/Lora/Archivo are declared once in
 * brand-admin.css, which loads on every admin screen including this one.
 */

body {
  background:
    radial-gradient(circle at 16% 18%, rgba(227, 200, 120, 0.16), transparent 42%),
    radial-gradient(circle at 86% 80%, rgba(126, 47, 30, 0.4), transparent 50%),
    #1C120C !important;
  min-height: 100vh;
}

.login-shell {
  max-width: 900px;
  margin: 0 auto;
}

.login-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(194, 154, 59, 0.15);
}
@media (min-width: 860px) {
  .login-card {
    flex-direction: row;
  }
}

.login-brand-panel {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 2.5rem;
  background:
    radial-gradient(circle at 30% 15%, rgba(194, 154, 59, 0.28), transparent 55%),
    linear-gradient(160deg, #241610, #1c120c);
  color: #f5eee0;
}
@media (min-width: 860px) {
  .login-brand-panel {
    display: flex;
    width: 38%;
    flex-shrink: 0;
  }
}
.login-brand-kicker {
  font-family: 'Archivo', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #e3c878;
  margin: 0 0 0.75rem;
}
.login-brand-title {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'opsz' 60;
  font-size: 2.1rem;
  line-height: 1.15;
  margin: 0;
  /* vendor.css sets a literal `h1,h2...{color:#32325d}` rule -- an
     explicit (if inherited-looking) declaration beats inheriting from
     .login-brand-panel, so this needs its own explicit color too. */
  color: #f5eee0;
}
.login-brand-tagline {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  color: rgba(245, 238, 224, 0.72);
  margin: 1.5rem 0 0;
  line-height: 1.6;
}
.login-brand-foot {
  font-family: 'Archivo', sans-serif;
  font-size: 0.75rem;
  color: rgba(245, 238, 224, 0.5);
  border-top: 1px solid rgba(245, 238, 224, 0.15);
  padding-top: 1.25rem;
  margin-top: 2rem;
}

.login-form-panel {
  flex: 1;
  min-width: 0;
  background: #f5eee0;
  padding: 2.25rem 1.5rem;
}
@media (min-width: 640px) {
  .login-form-panel {
    padding: 3rem 3rem;
  }
}

.login-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'opsz' 40;
  font-size: 1.75rem;
  color: #241610;
  margin: 0 0 0.35rem;
}
.login-subheading {
  font-family: 'Archivo', sans-serif;
  color: #6b5a4a;
  font-size: 0.95rem;
  margin: 0;
}

/* PIN-login user picker (cards are rendered client-side in login.blade.php) */
.login-user-card {
  background: #fff;
  border: 1px solid rgba(36, 22, 16, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.login-user-card:hover {
  box-shadow: 0 8px 20px -8px rgba(36, 22, 16, 0.25);
  transform: translateY(-1px);
}
.login-user-card--selected {
  border-color: #c29a3b;
  box-shadow: 0 0 0 2px #c29a3b;
}
.login-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #241610;
  background: linear-gradient(155deg, #e3c878, #c29a3b);
  flex-shrink: 0;
}

.login-link {
  color: #7e2f1e;
  font-size: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.login-link:hover {
  text-decoration: underline;
}

.login-input {
  width: 100%;
  border: 1px solid rgba(36, 22, 16, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: #241610;
}
.login-input:focus {
  outline: none;
  border-color: #c29a3b;
  box-shadow: 0 0 0 3px rgba(194, 154, 59, 0.25);
}

.login-btn-primary {
  background: #7e2f1e;
  color: #f5eee0;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.login-btn-primary:hover {
  background: #63241a;
}

/* .pin-input is the functional class login.blade.php's script already
   toggles/validates against -- only its appearance changes here. */
.pin-input {
  border: 1px solid rgba(36, 22, 16, 0.15) !important;
  background: #fff;
  color: #241610;
}
.pin-input:focus {
  outline: none;
  border-color: #c29a3b !important;
  box-shadow: 0 0 0 3px rgba(194, 154, 59, 0.25);
}

.login-error-box {
  background: rgba(126, 47, 30, 0.08);
  border: 1px solid rgba(126, 47, 30, 0.25);
  color: #63241a;
  border-radius: 10px;
  padding: 0.75rem 1rem;
}
