/* 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;
}

/* Acceso 2026: composicion editorial, accesible y adaptable */
*{ box-sizing:border-box; }
.auth-shell{
  width:100%; min-height:100dvh; display:grid;
  grid-template-columns:minmax(440px, 1.15fr) minmax(420px, .85fr);
}
.auth-story{
  position:relative; display:flex; align-items:flex-end; overflow:hidden;
  min-height:100dvh; padding:clamp(44px, 7vw, 104px);
  background:
    linear-gradient(145deg, rgba(4,10,36,.2), rgba(4,10,36,.88)),
    radial-gradient(circle at 72% 18%, rgba(79,195,247,.24), transparent 27%),
    radial-gradient(circle at 22% 78%, rgba(77,182,172,.18), transparent 31%),
    linear-gradient(135deg, #07112e 0%, #0a2741 52%, #063552 100%);
}
.auth-story::before,.auth-story::after{
  content:""; position:absolute; border:1px solid rgba(130,220,255,.16); border-radius:50%;
}
.auth-story::before{ width:520px; height:520px; right:-170px; top:-160px; box-shadow:0 0 0 76px rgba(79,195,247,.025),0 0 0 152px rgba(79,195,247,.018); }
.auth-story::after{ width:240px; height:240px; left:-85px; bottom:15%; box-shadow:0 0 70px rgba(77,182,172,.11); }
.story-content{ position:relative; z-index:1; max-width:720px; }
.story-kicker{ display:inline-flex; padding:8px 12px; border:1px solid rgba(79,195,247,.35); border-radius:999px; color:#9cddfb; font-size:.76rem; font-weight:750; letter-spacing:.12em; text-transform:uppercase; background:rgba(5,20,42,.48); }
.story-content h1{ margin:24px 0 18px; color:#fff; font-size:clamp(2.8rem,5.2vw,5.8rem); line-height:.98; letter-spacing:-.055em; font-weight:760; }
.story-content>p{ max-width:610px; margin:0; color:#b7cadd; font-size:clamp(1rem,1.6vw,1.22rem); line-height:1.65; }
.story-metrics{ display:flex; gap:clamp(24px,4vw,54px); margin-top:50px; padding-top:26px; border-top:1px solid rgba(180,225,245,.16); }
.story-metrics div{ display:grid; gap:5px; }
.story-metrics strong{ color:#e9f9ff; font-size:1.45rem; }
.story-metrics span{ color:#789bb3; font-size:.77rem; text-transform:uppercase; letter-spacing:.08em; }
.auth-panel{ display:grid; place-items:center; min-height:100dvh; padding:clamp(24px,5vw,72px); background:#f5f8fc; color:#152337; }
.auth-panel .auth-card{ max-width:480px; padding:0; gap:21px; border:0; box-shadow:none; background:transparent; backdrop-filter:none; }
.auth-panel .brand{ justify-content:flex-start; margin:0 0 12px; }
.auth-panel .brand-logo{ width:230px; filter:none; }
.auth-heading h2{ margin:0; color:#10243b; font-size:2rem; letter-spacing:-.035em; }
.auth-heading p{ margin:8px 0 0; color:#66788c; }
.auth-panel .label{ color:#334b63; font-weight:650; }
.label-row{ display:flex; align-items:center; justify-content:space-between; }
.label-row a,.auth-link{ color:#087eb9; text-decoration:none; font-size:.86rem; font-weight:700; }
.label-row a:hover,.auth-link:hover{ text-decoration:underline; }
.input-wrap{ display:flex; align-items:center; height:52px; overflow:hidden; border:1px solid #d4dfeb; border-radius:13px; background:#fff; transition:.2s ease; }
.input-wrap:focus-within{ border-color:#149bce; box-shadow:0 0 0 4px rgba(20,155,206,.12); }
.input-icon{ width:46px; text-align:center; color:#7b91a7; font-weight:800; }
.auth-panel .input{ flex:1; height:100%; min-width:0; border:0; border-radius:0; background:transparent; color:#152337; padding:0 15px 0 0; box-shadow:none; }
.auth-panel .input:focus{ border:0; box-shadow:none; background:transparent; }
.auth-panel .btn-primary{ height:52px; display:flex; align-items:center; justify-content:center; gap:12px; border-radius:13px; background:linear-gradient(135deg,#0aa9d6,#0876bd); box-shadow:0 13px 28px rgba(5,122,183,.22); }
.auth-panel .btn-primary:hover{ transform:translateY(-1px); box-shadow:0 16px 34px rgba(5,122,183,.28); }
.auth-notice{ border:1px solid #b8dfd5; background:#edf9f5; color:#17654f; padding:11px 13px; border-radius:12px; font-size:.9rem; }
.auth-panel .auth-error{ border-color:#f1c4c4; background:#fff2f2; color:#9b2929; }
.security-note{ margin:-4px 0 0; text-align:center; color:#7b8da0; font-size:.78rem; }
.security-note span{ color:#3cbf91; font-size:.7rem; }
.auth-panel .auth-footer{ color:#8795a4; border-top:1px solid #e2e8f0; }
.auth-back{ display:inline-flex; align-items:center; gap:8px; margin-bottom:18px; }
.auth-help{ color:#718295; font-size:.87rem; line-height:1.55; margin:0; }

@media (max-width: 920px){
  .auth-shell{ grid-template-columns:1fr; }
  .auth-story{ min-height:280px; padding:44px 28px; align-items:center; }
  .story-content h1{ font-size:clamp(2.4rem,9vw,4.4rem); }
  .story-metrics{ display:none; }
  .auth-panel{ min-height:auto; padding:48px 24px; }
}
@media (max-width: 520px){
  .auth-story{ min-height:230px; }
  .story-content>p{ display:none; }
  .auth-panel .auth-card{ padding:0; }
  .auth-panel .brand-logo{ width:200px; }
}
