/* BOT RUTA · Login Page */

:root {
  --p-600: #1c6e84;
  --p-500: #2a8fa9;
  --p-400: #4cb1c8;
  --p-300: #4cc6e8;
  --accent: #f5c518;
  --login-bg: #030d12;
  --login-bg-2: #06131b;
  --login-card: rgba(6, 20, 30, .75);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(1200px 700px at 70% -10%, var(--login-bg-2), var(--login-bg) 60%);
  color: #e2eef5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Animated background orbs ──────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: orbFloat linear infinite;
  will-change: transform;
}

.orb-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle at 40% 40%, #0a4a5e 0%, transparent 65%);
  top: -200px; left: -200px;
  animation-duration: 20s;
  opacity: .6;
}

.orb-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle at 60% 60%, var(--p-300) 0%, transparent 65%);
  bottom: -150px; right: -100px;
  animation-duration: 24s;
  animation-delay: -10s;
  opacity: .45;
}

.orb-3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #f5c518 0%, transparent 65%);
  top: 45%; left: 55%;
  transform: translate(-50%, -50%);
  animation-duration: 32s;
  animation-delay: -16s;
  opacity: .18;
}

.orb-4 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--p-600) 0%, transparent 65%);
  bottom: 25%; left: -80px;
  animation-duration: 27s;
  animation-delay: -6s;
  opacity: .5;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(30px, -25px) scale(1.04); }
  50%  { transform: translate(-18px, 35px) scale(.97); }
  75%  { transform: translate(20px, 15px) scale(1.02); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ── Card container ────────────────────────────────── */
.login-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  padding: 20px;
  animation: cardIn .65s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.login-card {
  background: var(--login-card, rgba(6, 20, 30, .75));
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(76, 193, 210, .14);
  border-radius: 24px;
  padding: 46px 42px 38px;
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, .7),
    inset 0 1px 0 rgba(255, 255, 255, .05),
    inset 0 -1px 0 rgba(0, 0, 0, .2);
}

/* ── Brand ─────────────────────────────────────────── */
.login-brand {
  text-align: center;
  margin-bottom: 38px;
}

.login-brand-logo {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--p-500) 0%, var(--p-600) 100%);
  border: 1px solid rgba(76, 193, 210, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 10px 30px -6px rgba(28, 110, 132, .5);
  overflow: hidden;
  position: relative;
}

.login-brand-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-fallback {
  font-size: 34px;
  display: none;
}

.login-brand-name {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.6px;
  background: linear-gradient(135deg, var(--p-300) 0%, var(--p-500) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
}

.login-brand-sub {
  font-size: 13px;
  color: rgba(180, 210, 230, .5);
  font-weight: 500;
  letter-spacing: .4px;
}

/* ── Form fields ───────────────────────────────────── */
.field-group {
  margin-bottom: 20px;
}

.field-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(180, 210, 230, .65);
  margin-bottom: 8px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: rgba(76, 193, 210, .55);
  pointer-events: none;
  flex-shrink: 0;
}

.field-wrap input {
  width: 100%;
  padding: 13px 14px 13px 44px;
  background: rgba(4, 15, 22, .7);
  border: 1.5px solid rgba(76, 193, 210, .15);
  border-radius: 12px;
  color: #e2eef5;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.field-wrap input::placeholder {
  color: rgba(140, 175, 200, .3);
}

.field-wrap input:focus {
  border-color: rgba(76, 193, 210, .5);
  box-shadow: 0 0 0 3px rgba(76, 193, 210, .1);
  background: rgba(6, 22, 34, .85);
}

.field-eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: rgba(76, 193, 210, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s;
  border-radius: 6px;
}

.field-eye:hover { color: rgba(76, 193, 210, .85); }

.field-eye svg {
  width: 17px;
  height: 17px;
}

/* ── Login button ──────────────────────────────────── */
.btn-login {
  width: 100%;
  margin-top: 12px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--p-600) 0%, var(--p-500) 55%, var(--p-400) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity .18s, transform .14s, box-shadow .2s;
  box-shadow: 0 8px 24px -6px rgba(28, 110, 132, .6);
  letter-spacing: .2px;
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.08);
  opacity: 0;
  transition: opacity .15s;
}

.btn-login:hover::before { opacity: 1; }
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -8px rgba(28, 110, 132, .65); }
.btn-login:active { transform: translateY(0); box-shadow: 0 4px 14px -4px rgba(28, 110, 132, .4); }
.btn-login:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ── Spinner ───────────────────────────────────────── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .65s linear infinite;
  flex-shrink: 0;
}

.hidden { display: none !important; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ────────────────────────────────────────── */
.login-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 11.5px;
  color: rgba(140, 175, 200, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-footer .sep {
  opacity: .5;
}
