@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Share+Tech+Mono&display=swap');

/* ── Base ─────────────────────────────────────────────────────────────────── */
html, body {
  height: 100%;
  font-family: 'Outfit', 'Noto Sans Tifinagh', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  overflow: auto;
  background-color: #020617;
}

.root {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROTRACK 365 — LOGIN PAGE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Main wrapper */
.pt365-layout {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #060a12;
}

/* Full-screen background photo */
.pt365-bg-photo {
  position: absolute;
  inset: 0;
  background-image: url('/login-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Gradient overlay — transparent left → darker right for login card */
.pt365-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.08) 40%,
    rgba(0, 0, 0, 0.50) 65%,
    rgba(0, 0, 0, 0.68) 100%
  );
  z-index: 1;
}

/* Top header bar */
.pt365-top-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.40) 0%, transparent 100%);
}

/* GPS Logo */
.pt365-gps-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  user-select: none;
}

/* App badges row */
.pt365-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Individual app store badge */
.pt365-app-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.pt365-app-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.38);
}

.pt365-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.pt365-badge-label {
  font-size: 0.48rem;
  opacity: 0.75;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
}

.pt365-badge-name {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

/* Main content row — right-aligned login card */
.pt365-content-row {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: flex-end;
  padding-right: 80px;
}

@media (max-width: 768px) {
  .pt365-content-row {
    justify-content: center;
    padding-right: 0;
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* Login card — dark semi-transparent like Protrack 365 */
.pt365-login-card {
  background: rgba(18, 20, 28, 0.88);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  border-radius: 6px;
  width: 340px;
  min-width: 300px;
  padding: 28px 28px 22px;
  box-sizing: border-box;
  color: #e2e8f0;
  position: relative;
}

@media (max-width: 480px) {
  .pt365-login-card {
    width: 92vw;
    padding: 22px 18px 18px;
  }
}

/* Input row wrapper — icon + white field */
.pt365-input-row {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pt365-input-row:focus-within {
  border-color: #f5a623;
  box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.18);
}

/* Orange icon column — left side of each input */
.pt365-input-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5a623;
  color: #fff;
  flex-shrink: 0;
}

/* The actual native input inside each row */
.pt365-input-field {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 10px;
  font-size: 0.88rem;
  background: #ffffff;
  color: #1a1a1a;
  font-family: 'Outfit', sans-serif;
  min-width: 0;
}

.pt365-input-field::placeholder {
  color: #9ca3af;
  font-family: 'Outfit', sans-serif;
}

/* Clear / visibility toggle button inside input rows */
.pt365-clear-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 4px 8px;
  color: #9ca3af;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  line-height: 1;
}

.pt365-clear-btn:hover {
  color: #374151;
}

/* Bottom footer bar */
.pt365-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

.pt365-footer-left {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-family: 'Outfit', sans-serif;
}

.pt365-footer-links {
  display: flex;
  gap: 12px;
}

.pt365-footer-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-family: 'Outfit', sans-serif;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.pt365-footer-link:hover {
  color: #f5a623;
}

/* Language selector — absolute bottom-right */
.pt365-lang-selector {
  position: absolute;
  bottom: 6px;
  right: 24px;
  z-index: 20;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEGACY / DASHBOARD AREA STYLES (kept for compatibility)
   ═══════════════════════════════════════════════════════════════════════════ */

.gts-bg {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.opaque-input .MuiOutlinedInput-root {
  background-color: #0d1527 !important;
  border-radius: 8px !important;
}

.opaque-input .MuiInputBase-input {
  color: #f8fafc !important;
}

.opaque-input .MuiOutlinedInput-notchedOutline {
  border-color: rgba(255, 255, 255, 0.08) !important;
  transition: border-color 0.2s;
}

.opaque-input:hover .MuiOutlinedInput-notchedOutline {
  border-color: rgba(245, 158, 11, 0.4) !important;
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 16px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: #f59e0b;
  cursor: pointer;
  user-select: none;
}

.floating-lang {
  z-index: 100;
}

.floating-lang .MuiSelect-select {
  color: #fff !important;
  background-color: rgba(0, 0, 0, 0.4) !important;
  padding: 6px 32px 6px 12px !important;
  font-size: 0.75rem !important;
}

.cyber-search-input::placeholder {
  color: #707e94 !important;
  opacity: 0.85 !important;
}

/* ── Print ─────────────────────────────────────────────────────────────────── */
@media print {
  * {
    height: auto !important;
    overflow: visible !important;
  }
}