/* ═══════════════════════════════════════════════════════════════
   Chat Basestar — Custom Theme
   Matches branding from drive.basestar.uk / stream.basestar.uk
   ═══════════════════════════════════════════════════════════════ */

/* ─── Login Page Background ─────────────────────────────────── */
.mx_AuthPage {
  background: url('/branding/background.jpg') no-repeat center center fixed !important;
  background-size: cover !important;
}

/* ─── Login Card Styling ────────────────────────────────────── */
.mx_AuthPage_modal {
  background: rgba(16, 19, 24, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(74, 159, 191, 0.15) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

/* ─── Auth Header Logo ──────────────────────────────────────── */
.mx_AuthHeaderLogo {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.mx_AuthHeaderLogo img {
  content: url('/branding/logo.png') !important;
  height: 80px !important;
  width: auto !important;
}

/* ─── Tagline under logo (centered) ─────────────────────────── */
.mx_AuthHeaderLogo::after {
  content: 'By your Command';
  display: block;
  text-align: center;
  color: rgba(180, 210, 225, 0.6);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 1.5px;
  margin-top: 8px;
  width: 100%;
}

/* ─── Hide Homeserver info ──────────────────────────────────── */
.mx_ServerPicker {
  display: none !important;
}

/* ─── SSO Button Styling (Google prominent) ─────────────────── */
.mx_SSOButtons {
  margin-bottom: 16px !important;
}

.mx_SSOButtons .mx_SSOButton {
  padding: 12px 24px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  background: rgba(74, 159, 191, 0.2) !important;
  border: 1px solid rgba(74, 159, 191, 0.4) !important;
  color: #fff !important;
  transition: all 0.2s ease !important;
}

.mx_SSOButtons .mx_SSOButton:hover {
  background: rgba(74, 159, 191, 0.35) !important;
  border-color: rgba(74, 159, 191, 0.6) !important;
}

/* ─── Password login toggle (injected by custom.js) ─────────── */
#basestar-pw-toggle {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 0;
  color: rgba(180, 210, 225, 0.4);
  font-size: 12px;
  cursor: pointer;
  border: none;
  background: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  margin-top: 4px;
}

#basestar-pw-toggle:hover {
  color: rgba(180, 210, 225, 0.7);
}

/* ─── Password form (hidden by default, shown by JS toggle) ── */
.basestar-pw-hidden {
  display: none !important;
}

/* ─── "Or" divider between SSO and password ─────────────────── */
.mx_AuthBody_centered {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* ─── Welcome Panel (right side) ────────────────────────────── */
.mx_Welcome {
  background: transparent !important;
}

/* ─── Footer / Links ────────────────────────────────────────── */
.mx_AuthFooter {
  opacity: 0.5;
}

/* ─── Input fields ──────────────────────────────────────────── */
.mx_AuthPage .mx_Field input {
  background: rgba(32, 37, 43, 0.8) !important;
  border-color: rgba(74, 159, 191, 0.2) !important;
  color: #fff !important;
}

.mx_AuthPage .mx_Field input:focus {
  border-color: rgba(74, 159, 191, 0.5) !important;
}

/* ─── General accent color override ─────────────────────────── */
.mx_AuthPage .mx_Login_submit {
  background-color: rgba(74, 159, 191, 0.3) !important;
  border: 1px solid rgba(74, 159, 191, 0.4) !important;
}

.mx_AuthPage .mx_Login_submit:hover {
  background-color: rgba(74, 159, 191, 0.45) !important;
}

/* ─── Hide "New here? Create an account" ────────────────────── */
.mx_AuthBody .mx_Login_create {
  display: none !important;
}
