/* ============================================
   Auth Modals - TikTok style (shared)
   ============================================ */

/* Modal overlay backdrop */
.tt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
}
.tt-modal-overlay.open { display: flex; }

/* Modal box */
.tt-modal-box {
  background: #1e1e1e;
  border-radius: 12px;
  width: 100%;
  max-width: 360px;
  padding: 28px 24px 24px;
  position: relative;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.tt-modal-box.tt-login-box {
  max-width: 420px;
  padding: 40px 32px 28px;
}
.tt-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tt-modal-close:hover { background: rgba(255, 255, 255, 0.1); }

/* Logout confirmation */
.tt-confirm-title {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: #fff;
}
.tt-confirm-buttons { display: flex; gap: 10px; }
.tt-confirm-btn {
  flex: 1;
  padding: 11px 16px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.tt-confirm-btn.tt-cancel { background: #2f2f2f; color: #fff; }
.tt-confirm-btn.tt-cancel:hover { background: #3a3a3a; }
.tt-confirm-btn.tt-danger { background: #fe2c55; color: #fff; }
.tt-confirm-btn.tt-danger:hover { background: #e62548; }

/* Login modal */
.tt-login-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
  color: #fff;
}
.tt-login-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  background: #2f2f2f;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  font-family: inherit;
}
.tt-login-option:hover { background: #3a3a3a; }
.tt-login-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  font-size: 16px;
}
.tt-login-option-label { flex: 1; text-align: center; padding-right: 24px; }

.tt-login-form { display: none; flex-direction: column; gap: 12px; }
.tt-login-form.show { display: flex; }
.tt-login-input {
  width: 100%;
  padding: 12px 14px;
  background: #2f2f2f;
  border: 1px solid #2f2f2f;
  border-radius: 4px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
}
.tt-login-input:focus { outline: none; border-color: #fe2c55; background: #1a1a1a; }
.tt-login-input::placeholder { color: #888; }
.tt-login-submit {
  width: 100%;
  padding: 12px;
  background: #fe2c55;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
}
.tt-login-submit:hover { background: #e62548; }
.tt-login-submit:disabled { background: #5a1f2c; cursor: not-allowed; }
.tt-login-err { color: #fe2c55; font-size: 13px; text-align: center; min-height: 18px; }
.tt-login-back {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
}
.tt-login-back:hover { color: #fff; }
.tt-login-foot {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #2f2f2f;
  font-size: 14px;
  color: #aaa;
}
.tt-login-foot a {
  color: #fe2c55;
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}
.tt-login-foot a:hover { text-decoration: underline; }

/* Guest mode red login button */
.nav-login-btn {
  background: #fe2c55;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.nav-login-btn:hover { background: #e62548; }
