/* Auth UI (modal + header/mobile buttons) */

.fc26-auth-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  display: none;
  align-items:center;
  justify-content:center;
  z-index: 999999;
}
.fc26-auth-overlay.is-open{ display:flex; }

.fc26-auth-modal{
  width: min(520px, 92vw);
  padding: 26px 28px;
  color:#fff;
  position: relative;
  font-family: inherit;
}

.fc26-auth-top{
  position:absolute;
  top:14px; left:14px; right:14px;
  display:flex;
  justify-content:flex-end;
  pointer-events:none;
}

.fc26-auth-close{
  pointer-events:auto;
  width:44px; height:44px;
  border:0;
  background:transparent !important;
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: color 160ms ease, transform 160ms ease;
}
.fc26-auth-close:hover{ color:#ffd400; transform: scale(1.05); }

.fc26-auth-logo-center{
  display:flex;
  justify-content:center;
  margin: 16px 0 18px;
}
.fc26-auth-logo-center img{ height:26px; width:auto; display:block; }
.fc26-auth-fallback-logo{ font-weight:800; letter-spacing:.4px; }

.fc26-auth-title{
  text-align:center;
  font-size:16px;
  font-weight:500;
  opacity:.92;
  margin:0 0 14px;
}

.fc26-auth-form{ width: min(360px, 86vw); margin: 0 auto; }
.fc26-auth-field{ margin:0 0 14px; }

.fc26-auth-input{
  width:100%;
  background:transparent !important;
  border:none !important;
  border-bottom:1px solid rgba(255,255,255,0.22) !important;
  color:#fff !important;
  padding:10px 0;
  outline:none;
  font-size:14px;
}
.fc26-auth-input::placeholder{ color: rgba(255,255,255,0.55) !important; }
.fc26-auth-input:focus{ border-bottom-color: rgba(255,255,255,0.42) !important; }

.fc26-btn-login{
  width:100%;
  margin-top:6px;
  padding:12px 14px;
  background:transparent;
  border:1px solid #ffd400;
  color:#ffd400;
  font-weight:700;
  letter-spacing:.6px;
  cursor:pointer;
  transition: background 170ms ease, color 170ms ease, transform 170ms ease;
}
.fc26-btn-login:hover{ background:#ffd400; color:#000; transform: translateY(-1px); }

.fc26-btn-register{
  width:100%;
  margin-top:10px;
  padding:12px 14px;
  background:#ffd400;
  border:1px solid #ffd400;
  color:#000;
  font-weight:800;
  letter-spacing:.6px;
  cursor:pointer;
  transition: filter 170ms ease, transform 170ms ease;
}
.fc26-btn-register:hover{ filter: brightness(0.92); transform: translateY(-1px); }

.fc26-auth-links{
  margin-top:18px;
  display:flex;
  justify-content:center;
  gap:18px;
  font-size:12px;
  opacity:.9;
}
.fc26-auth-links a{
  color: rgba(255,255,255,0.72);
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,0.18);
}
.fc26-auth-links a:hover{ color:#fff; border-bottom-color: rgba(255,255,255,0.40); }

.fc26-auth-msg{
  margin:10px 0 0;
  font-size:12px;
  text-align:center;
  min-height:16px;
  color: rgba(255,255,255,0.80);
}
.fc26-auth-msg.is-error{ color:#ff6b6b; }
.fc26-auth-msg.is-ok{ color:#7CFF7C; }

.fc26-hidden{ display:none !important; }

/* Header buttons (desktop) */
.fc26-header-login,
.fc26-header-account{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border:1px solid #ffd400;
  color:#ffd400;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  letter-spacing:.05em;
  line-height:1;
}

/* Mobile auth button - JS mounts inside header (not fixed to viewport) */
.fc26-mobile-auth{ display:none; }

@media (max-width: 921px){
  .fc26-mobile-auth{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border:1px solid #ffd400;
    color:#ffd400;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-decoration:none;
    font-weight:700;
    letter-spacing:.6px;
    line-height:1;
    z-index: 1000000;
  }

  .fc26-mobile-auth-slot{
    position: relative;
    height: 100%;
  }
}

@media (max-width: 420px){
  .fc26-mobile-auth-text{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  .fc26-auth-close, .fc26-btn-login, .fc26-btn-register,
  .fc26-header-login, .fc26-header-account, .fc26-mobile-auth{
    transition: none !important;
  }
}
