/* Paleta alineada con dist/img/logo_risk_flow.jpg (RiskFlow): navy profundo, cyan, azul medio, toque teal */
:root{
  --rf-navy-deep: #050b2b;
  --rf-navy: #0a1628;
  --rf-navy-mid: #0d2137;
  --rf-cyan: #4fc3f7;
  --rf-cyan-bright: #29b6f6;
  --rf-blue: #0288d1;
  --rf-blue-deep: #01579b;
  --rf-teal: #4db6ac;
  --bg: var(--rf-navy-deep);
  --bg-accent: var(--rf-navy);
  --card-bg: rgba(10, 22, 40, 0.72);
  --card-stroke: rgba(79, 195, 247, 0.22);
  --text: #f0f4f8;
  --muted: #90a4b8;
  --primary: var(--rf-cyan);
  --primary-strong: var(--rf-blue);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(79, 195, 247, 0.06) inset;
  --radius: 18px;
}

.auth-bg{
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(ellipse 900px 480px at 12% -8%, rgba(41, 182, 246, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 700px 420px at 88% 108%, rgba(2, 136, 209, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 500px 360px at 50% 50%, rgba(77, 182, 172, 0.06) 0%, transparent 60%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-accent) 45%, var(--rf-navy-mid) 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

.auth-wrapper{
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card{
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--card-stroke);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  gap: 16px;
}

.brand{
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.brand-logo{
  display: block;
  width: 100%;
  max-width: min(320px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
}

.auth-title{
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  color: #f0f4f8;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)){
  .auth-title{
    background: linear-gradient(90deg, #ffffff 0%, #e3f2fd 40%, var(--rf-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.auth-subtitle{
  margin: -4px 0 8px;
  font-size: .95rem;
  color: var(--muted);
  text-align: center;
}

.logo-plate{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(79, 195, 247, 0.08), rgba(5, 11, 43, 0.5));
  border: 1px solid rgba(79, 195, 247, 0.2);
  box-shadow: 0 0 32px rgba(41, 182, 246, 0.08);
}

.field{
  display: grid;
  gap: 6px;
}
.label{
  font-size: .9rem;
  color: var(--muted);
}
.input{
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(79, 195, 247, 0.2);
  background: rgba(5, 11, 43, 0.55);
  color: var(--text);
  padding: 0 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.input::placeholder{ color: #78909c; }
.input:focus{
  border-color: var(--rf-cyan);
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.22);
  background: rgba(5, 11, 43, 0.75);
}

.btn-primary{
  margin-top: 8px;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--rf-cyan-bright) 0%, var(--rf-blue) 55%, var(--rf-blue-deep) 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .06s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 28px rgba(2, 136, 209, 0.35);
}
.btn-primary:hover{
  filter: brightness(1.07);
  box-shadow: 0 12px 32px rgba(41, 182, 246, 0.4);
}
.btn-primary:active{ transform: translateY(1px); }

.auth-error{
  margin-top: 2px;
  border: 1px solid rgba(239, 83, 80, 0.45);
  background: rgba(183, 28, 28, 0.12);
  color: #ffcdd2;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .9rem;
}

.auth-footer{
  margin-top: 4px;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  border-top: 1px dashed rgba(79, 195, 247, 0.2);
  padding-top: 10px;
}

@media (max-width: 480px){
  .auth-card{ padding: 22px; }
  .logo-plate{ padding: 12px 14px; }
}

.modern-footer{
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.modern-footer:hover{
  opacity: 1;
  transform: translateY(-1px);
}
.modern-footer a{
  color: var(--rf-cyan);
  text-decoration: none;
  font-weight: 600;
}
.modern-footer a:hover{
  color: #fff;
  text-decoration: underline;
}
