/* Barnehandballtrener - Auth & Subscription Styles
   Tema: bruker farger inspirert av logo (oransje/gul + grÃ¸nn)
*/

/* ------------------------------
   Theme tokens (logo-inspirert)
--------------------------------- */
:root{
  --bf-orange: #f39a1f;
  --bf-yellow: #ffd24a;
  --bf-green:  #2e8b57;
  --bf-deep:   #0f3d2e;

  --bf-ink:    #0f172a;
  --bf-muted:  #64748b;

  --bf-border: rgba(15, 23, 42, 0.14);
  --bf-shadow: 0 14px 36px rgba(2, 6, 23, 0.12);
  --bf-shadow-soft: 0 10px 26px rgba(2, 6, 23, 0.10);

  --bf-radius-lg: 18px;
  --bf-radius-md: 14px;
}

/* ------------------------------
   Login box / header
--------------------------------- */
.password-box {
  background: #fff;
  padding: 40px;
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.16);
  max-width: 460px;
  width: 100%;
  animation: slideUp 0.45s ease;
}

.password-header{
  text-align: center;
  margin-bottom: 26px;
}

.password-icon{
  width: 220px;
  height: 220px;
  margin: 0 auto 28px;
  border-radius: 36px;

  /* â€œkortetâ€ bak logoen â€“ lett logo-inspirert */
  background: linear-gradient(135deg,
    rgba(243, 154, 31, 0.16),
    rgba(46, 139, 87, 0.14)
  );
  border: 1px solid rgba(15, 23, 42, 0.08);

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.10);
}

.login-logo{
  width: 200px;
  height: 200px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(2, 6, 23, 0.10));
}

.password-header h1{
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--bf-ink);
  margin: 0 0 8px;
}

.password-header p{
  font-size: 16px;
  color: var(--bf-muted);
  margin: 0;
}

/* ------------------------------
   Google button (moderne, â€œproffâ€)
--------------------------------- */
.btn-google{
  width: 100%;
  padding: 14px 18px;
  background: #ffffff;

  /* subtil â€œbrandâ€ outline */
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--bf-radius-lg);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  font-size: 16px;
  font-weight: 750;
  color: #0b1220;

  cursor: pointer;
  box-shadow: var(--bf-shadow-soft);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
  position: relative;
  isolation: isolate;
}

/* â€œgradient ringâ€ (logo-farger) */
.btn-google::before{
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(243,154,31,0.65), rgba(255,210,74,0.55), rgba(69,108,75,0.68));
  z-index: -1;
  opacity: 0.0;
  transition: opacity 160ms ease;
}

.btn-google svg{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.btn-google:hover{
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.20);
  transform: translateY(-1px);
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.16);
}

.btn-google:hover::before{
  opacity: 0.95; /* ring aktiveres pÃ¥ hover */
}

.btn-google:active{
  transform: translateY(0px);
  box-shadow: var(--bf-shadow-soft);
}

.btn-google:focus{
  outline: none;
}

/* synlig tastaturfokus uten Ã¥ â€œbrÃ¥keâ€ */
.btn-google:focus-visible{
  outline: 3px solid rgba(243,154,31,0.30);
  outline-offset: 3px;
}

/* Disabled / loading */
.btn-google:disabled,
.btn-google.loading{
  opacity: 0.60;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-google.loading{
  pointer-events: none;
}

/* ------------------------------
   Divider (hvis du bruker den et sted)
--------------------------------- */
.divider{
  display: flex;
  align-items: center;
  margin: 18px 0 0;
  color: rgba(100,116,139,0.9);
  font-size: 13px;
}

.divider::before,
.divider::after{
  content:'';
  flex: 1;
  height: 1px;
  background: rgba(15, 23, 42, 0.10);
}

.divider span{
  padding: 0 12px;
}

/* ------------------------------
   Subscription badge (hvis i bruk)
--------------------------------- */
.subscription-badge{
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.subscription-badge.active{
  background: linear-gradient(135deg, var(--bf-yellow), var(--bf-orange));
  color: #0b1220;
}

.subscription-badge.trial{
  background: linear-gradient(135deg, rgba(46,139,87,1), rgba(15,61,46,1));
  color: #fff;
}

.subscription-badge:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.18);
}

.subscription-badge i{
  font-size: 14px;
}

/* ------------------------------
   Small text / links
--------------------------------- */
#passwordProtection .small-text{
  font-size: 13px;
  color: rgba(100,116,139,1);
  line-height: 1.55;
}
#passwordProtection .small-text a{
  color: var(--bf-green);
  text-decoration: none;
  font-weight: 700;
}
#passwordProtection .small-text a:hover{
  text-decoration: underline;
}

/* ------------------------------
   Secondary button (hvis i bruk)
--------------------------------- */
#passwordProtection .btn-secondary{
  width: 100%;
  padding: 12px 18px;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: var(--bf-radius-md);
  font-size: 15px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.90);
  cursor: pointer;

  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
#passwordProtection .btn-secondary:hover{
  background: rgba(2, 6, 23, 0.03);
  border-color: rgba(15, 23, 42, 0.26);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.12);
}
#passwordProtection .btn-secondary:active{
  transform: translateY(0);
  box-shadow: none;
}

/* ------------------------------
   Error message
--------------------------------- */
#passwordProtection .error-message{
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 14px;
  display: none;
}
#passwordProtection .error-message.show{
  display: block;
  animation: shake 0.35s ease;
}

/* ------------------------------
   Animations / responsive
--------------------------------- */
@keyframes slideUp{
  from{ transform: translateY(10px); opacity: 0; }
  to{ transform: translateY(0px); opacity: 1; }
}

@keyframes shake{
  0%,100%{ transform: translateX(0); }
  25%{ transform: translateX(-8px); }
  75%{ transform: translateX(8px); }
}

@media (max-width: 480px){
  .password-box{ padding: 30px 18px; }
  .password-header h1{ font-size: 26px; }
  .btn-google{ font-size: 15px; padding: 13px 16px; }
  .password-icon{ width: 215px; height: 215px; border-radius: 34px; }
  .login-logo{ width: 195px; height: 195px; }
}

/* ---- FINAL OVERRIDE: Google-knapp (tving designet) ---- */
button#googleSignInBtn.btn-google{
  width: 100%;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  font-size: 16px;
  font-weight: 750;
  color: #0b1220;

  cursor: pointer;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.10);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

button#googleSignInBtn.btn-google:hover{
  border-color: rgba(15, 23, 42, 0.20);
  transform: translateY(-1px);
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.16);
}

button#googleSignInBtn.btn-google:active{
  transform: translateY(0);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.10);
}

/* ===========================
   Public mini-landing (pre-login)
   Scoped to #passwordProtection to prevent CSS bleed
   =========================== */

#passwordProtection .landing-tagline {
  margin: 6px 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

#passwordProtection .landing-hero {
  margin: 14px 0 6px;
}

#passwordProtection .landing-bullets {
  margin: 0;
  padding-left: 18px;
  text-align: left;
  line-height: 1.5;
}

#passwordProtection .landing-bullets li {
  margin: 6px 0;
}



/* Login landing â€” keypoint paragraphs (no bullet list) */
#passwordProtection .landing-kps {
  margin: 14px 0 10px;
  text-align: left;
  line-height: 1.6;
  font-size: 0.98rem;
  color: rgba(15, 23, 42, 0.86);
}
#passwordProtection .landing-kps p {
  margin: 10px 0;
}
@media (max-width: 420px) {
  #passwordProtection .landing-kps {
    font-size: 0.96rem;
  }
}

#passwordProtection .btn-secondary-link {
  display: block;
  margin: 10px auto 0;
  text-decoration: none;
  text-align: center;
  color: #456C4B;
  border-color: rgba(69, 108, 75, 0.35);
}
#passwordProtection .btn-secondary.btn-secondary-link:hover {
  background: rgba(69, 108, 75, 0.06);
  border-color: rgba(69, 108, 75, 0.48);
  color: #3a5a40;
}

#passwordProtection .public-landing {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

#passwordProtection .public-landing .landing-section + .landing-section {
  margin-top: 16px;
}

#passwordProtection .public-landing h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

#passwordProtection .public-landing .landing-list,
#passwordProtection .public-landing .landing-steps {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

#passwordProtection .public-landing .landing-list li,
#passwordProtection .public-landing .landing-steps li {
  margin: 6px 0;
}

#passwordProtection .public-landing .landing-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

#passwordProtection .public-landing .landing-price {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  background: rgba(69, 108, 75, 0.05);
}

#passwordProtection .public-landing .price-title {
  font-weight: 700;
  opacity: 0.85;
}

#passwordProtection .public-landing .price-amount {
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: 800;
}

#passwordProtection .public-landing .landing-muted {
  margin: 6px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #22324a;
  opacity: 0.95;
}

#passwordProtection .public-landing .landing-faq {
  border: 1px solid rgba(69, 108, 75, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 10px;
  background: rgba(69, 108, 75, 0.04);
}

#passwordProtection .public-landing .landing-faq[open] {
  background: rgba(69, 108, 75, 0.07);
}

#passwordProtection .public-landing .landing-faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #0b1220;
}

#passwordProtection .public-landing .landing-faq summary::-webkit-details-marker { display: none; }

#passwordProtection .public-landing .landing-faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(69, 108, 75, 0.9);
  line-height: 0;
  transform: rotate(0deg) translateY(-1px);
  transition: transform 160ms ease;
}

#passwordProtection .public-landing .landing-faq[open] summary::after {
  transform: rotate(180deg) translateY(-1px);
}

#passwordProtection .public-landing .landing-faq p {
  margin: 10px 0 0;
  line-height: 1.6;
  color: #22324a;
}

#passwordProtection .public-landing .landing-faq a {
  color: #456C4B;
  text-decoration: underline;
}

#passwordProtection .public-landing .landing-faq {
  border-left: 3px solid #456C4B;
}

#passwordProtection .landing-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

#passwordProtection .landing-trust .trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 10px;
  border: 1px solid rgba(69, 108, 75, 0.2);
  border-radius: 12px;
  background: rgba(69, 108, 75, 0.04);
  font-size: 0.92rem;
  font-weight: 650;
  color: #0b1220;
}

#passwordProtection .landing-trust .trust-item i {
  color: rgba(69, 108, 75, 0.95);
}

#passwordProtection .landing-footer-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  font-size: 0.9rem;
}

#passwordProtection .landing-footer-links a {
  color: #456C4B;
  text-decoration: none;
  font-weight: 650;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(69, 108, 75, 0.22);
  background: rgba(69, 108, 75, 0.05);
}

#passwordProtection .landing-footer-links .dot {
  opacity: 0.6;
}

@media (max-width: 420px) {
  #passwordProtection .public-landing .landing-prices {
    grid-template-columns: 1fr;
  }
  #passwordProtection .landing-trust {
    grid-template-columns: 1fr;
  }
}


/* Hide magic link in production to avoid confusion. Enable only on debug hosts (staging/localhost). */
#passwordProtection .magic-link-section { display: none; }
html.bf-debug-host #passwordProtection .magic-link-section { display: block; }
