/* ── DScomm Fonts ────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Monument-Ultrabold';
  src: url('https://fontes-dscomm.pages.dev/MonumentExtended-Ultrabold.woff2') format('woff2');
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gotham-Medium';
  src: url('https://fontes-dscomm.pages.dev/Gotham-Medium.woff2') format('woff2');
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gotham-Book';
  src: url('https://fontes-dscomm.pages.dev/Gotham-Book.woff2') format('woff2');
  font-weight: normal; font-style: normal; font-display: swap;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Gotham-Book', system-ui, sans-serif; }

/* ── Background ──────────────────────────────────────────────────────────── */
.login-bg {
  min-height: 100vh;
  background: #0d1625;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Animated orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}
.orb-1 { width: 500px; height: 500px; background: #47a2db; top: -180px; left: -120px; animation-delay: 0s; }
.orb-2 { width: 350px; height: 350px; background: #47a2db; bottom: -100px; right: -80px; animation-delay: -3s; }
.orb-3 { width: 250px; height: 250px; background: #ffffff; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -5s; opacity: 0.04; }
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}
.orb-3 { animation-name: float3; }
@keyframes float3 {
  0%, 100% { transform: translate(-50%,-50%) scale(1); }
  50%       { transform: translate(-50%,-50%) scale(1.1); }
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(71,162,219,0.2);
  border-radius: 24px;
  padding: 44px 40px;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: card-in 0.5s cubic-bezier(.22,1,.36,1);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(32px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Logo ─────────────────────────────────────────────────────────────────── */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #47a2db, #2272a8);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(71,162,219,0.4);
}
.logo-brand {
  display: block;
  font-family: 'Monument-Ultrabold', sans-serif;
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1;
}
.logo-sub {
  display: block;
  font-family: 'Gotham-Book', sans-serif;
  font-size: 12px;
  color: #47a2db;
  margin-top: 3px;
  letter-spacing: .5px;
}

/* ── Title ────────────────────────────────────────────────────────────────── */
.login-title {
  font-family: 'Gotham-Medium', sans-serif;
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 6px;
}
.login-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
}

/* ── Fields ───────────────────────────────────────────────────────────────── */
.field-group { margin-bottom: 18px; }
.field-group label {
  display: block;
  font-family: 'Gotham-Medium', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  pointer-events: none;
  line-height: 1;
}
.input-wrap input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(71,162,219,0.2);
  border-radius: 12px;
  padding: 13px 44px 13px 42px;
  color: #ffffff;
  font-family: 'Gotham-Book', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input-wrap input::placeholder { color: rgba(255,255,255,0.25); }
.input-wrap input:focus {
  border-color: #47a2db;
  background: rgba(71,162,219,0.08);
  box-shadow: 0 0 0 3px rgba(71,162,219,0.15);
}

.toggle-pwd {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.2s;
}
.toggle-pwd:hover { color: #47a2db; }
.toggle-pwd svg { width: 18px; height: 18px; }

/* ── Error ─────────────────────────────────────────────────────────────────── */
.error-msg {
  background: rgba(248,81,73,0.12);
  border: 1px solid rgba(248,81,73,0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #ff8a84;
  margin-bottom: 16px;
  animation: shake .35s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}
.hidden { display: none !important; }

/* ── Submit button ────────────────────────────────────────────────────────── */
.login-btn {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: linear-gradient(135deg, #47a2db, #2272a8);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-family: 'Gotham-Medium', sans-serif;
  font-size: 15px;
  letter-spacing: .3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 4px 24px rgba(71,162,219,0.35);
}
.login-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(71,162,219,0.45);
}
.login-btn:active:not(:disabled) { transform: translateY(0); }
.login-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-loader {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
