html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
  text-align: start;
}

/* Layout overrides / critical CSS */
.topbar {
  position: relative !important;
  z-index: 10001 !important;
}

.mobile-menu {
  position: fixed !important;
  top: 70px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

.logo-img {
  max-height: 80px;
}

.logo-preview-img {
  max-height: 50px;
}

/* Section overrides */
.section-padding-bottom {
  padding: 0 0 44px;
}

/* Admin elements */
.admin-video-thumb {
  height: 200px;
  object-fit: cover;
}

/* Auth / Verify pages Split Screen Layout */
.auth-bg-image {
  background-image: url('../images/auth-bg.png');
  background-size: cover;
  background-position: center;
}

.auth-back-link {
  position: absolute;
  top: 2rem;
  left: 2rem;
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.auth-back-link:hover {
  color: #fff !important;
  transform: translateX(-4px);
}

.auth-back-link svg {
  transition: transform 0.3s ease;
}

.auth-form-wrapper {
  padding: 2rem;
}

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  letter-spacing: -0.5px;
}

.tracking-wide {
  letter-spacing: 0.1em;
}

.auth-input {
  background-color: #212529 !important;
  border: 1px solid #444 !important;
  color: #fff !important;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 0.375rem;
}

.auth-input:focus {
  background-color: #2c3034 !important;
  border-color: #6c757d !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1) !important;
}

.auth-input::placeholder {
  color: #6c757d !important;
}

.auth-btn {
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.auth-btn:hover {
  background-color: #e9ecef;
  transform: translateY(-1px);
}

/* MySite preview visual styles */
.preview-title-hidden {
  visibility: hidden;
}

.preview-card-bg {
  background-color: #f8f9fa;
}

.preview-mock-area {
  min-height: 400px;
}

.preview-mock-title {
  font-size: 28px;
  margin-top: 0;
}

.preview-mock-grid {
  gap: 15px;
  padding: 0;
}

.preview-mock-card {
  box-shadow: none;
  border-color: #ddd;
}

.preview-mock-media {
  height: 100px;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-mock-icon {
  font-size: 24px;
}

.preview-mock-body {
  padding: 12px;
}

.preview-mock-line-1 {
  height: 14px;
  width: 80%;
  opacity: 0.2;
}

.preview-mock-line-2 {
  height: 10px;
  width: 60%;
  opacity: 0.1;
}

.preview-mock-line-3 {
  height: 10px;
  width: 40%;
  opacity: 0.1;
}

/* ── Login Modal Overlay ───────────────────────────────── */
.login-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.login-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.login-modal-card {
  background: #13131a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 2.5rem 2.25rem 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.04);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-modal-backdrop.is-open .login-modal-card {
  transform: translateY(0) scale(1);
}

.login-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.login-modal-close:hover {
  color: #fff;
}

.login-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.login-modal-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.75rem;
}

.login-modal-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.4rem;
  display: block;
}

.login-modal-input {
  width: 100%;
  background: #1e1e2a !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-modal-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.35) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06) !important;
  background: #22222f !important;
}

.login-modal-input::placeholder {
  color: #4a4a60 !important;
}

.login-modal-submit {
  width: 100%;
  background: #fff;
  color: #11111a;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}

.login-modal-submit:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.login-modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-modal-error {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.35);
  border-radius: 0.5rem;
  padding: 0.65rem 0.9rem;
  color: #f87c87;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}

.login-modal-error.is-visible {
  display: block;
}

.login-modal-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 1.5rem 0 1rem;
}

.login-modal-footer {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

.login-modal-footer a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.login-modal-footer a:hover {
  text-decoration: underline;
}
/* -- Login modal tabs ---------------------------------------- */
.login-modal-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,.15);
    margin-bottom: 1.25rem;
}

.login-modal-tab {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255,255,255,.55);
    font-weight: 600;
    font-size: .875rem;
    padding: .625rem 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.login-modal-tab.active {
    color: #fff;
    border-bottom-color: #fff;
}

.login-modal-tab:hover:not(.active) {
    color: rgba(255,255,255,.8);
}
