/* /public/assets/css/login_ecopetrol.css */
/* Login premium – corporativo, limpio y responsive */

:root{
  --eco-green:#006C35;
  --eco-green-2:#00A651;
  --eco-yellow:#FFD200;

  --bg:#f4f7fb;
  --card:#ffffff;
  --text:#0b1220;
  --muted:#52606d;

  --border:rgba(15,23,42,.14);
  --shadow:0 18px 45px rgba(2,6,23,.18);

  --radius:22px;
  --radius2:16px;
  --focus:rgba(0,166,81,.25);

  --danger:#7a271a;
  --dangerBg:rgba(220,38,38,.10);

  --ok:#14532d;
  --okBg:rgba(34,197,94,.12);

  --warn:#7a5b00;
  --warnBg:rgba(255,210,0,.22);

  --maxw:1080px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--text);
  background:
    radial-gradient(1100px 700px at 10% 10%, rgba(255,210,0,.16), transparent 55%),
    radial-gradient(1100px 700px at 90% 0%, rgba(0,166,81,.16), transparent 55%),
    var(--bg);
}

.hidden{display:none !important;}

/* Layout */
.login-wrap{
  min-height:100%;
  display:grid;
  place-items:center;
  padding:clamp(14px,3vw,32px);
}

.login-shell{
  width:100%;
  max-width:var(--maxw);
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:20px;
}

/* HERO */
.hero{
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  background:
    linear-gradient(135deg, rgba(0,108,53,.94), rgba(0,166,81,.92)),
    radial-gradient(900px 500px at 20% 15%, rgba(255,210,0,.22), transparent 60%);
  color:#fff;
}

.hero__inner{
  padding:clamp(20px,3vw,36px);
  display:flex;
  flex-direction:column;
  gap:18px;
}

.hero-top{
  display:flex;
  align-items:center;
  gap:14px;
}

.badge{
  width:56px;
  height:56px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  font-weight:900;
  letter-spacing:.5px;
}

.hero-title h1{
  margin:0;
  font-size:clamp(22px,2.6vw,32px);
  line-height:1.05;
  font-weight:950;
}

.hero-title p{
  margin:6px 0 0 0;
  font-size:13.5px;
  opacity:.92;
}

.hero-copy{
  max-width:48ch;
  font-size:14.5px;
  line-height:1.6;
  opacity:.95;
}

.hero-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.hero-item{
  display:flex;
  gap:10px;
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
}

.hero-item b{
  display:block;
  font-size:14px;
}

.hero-item span{
  font-size:13px;
  opacity:.92;
}

/* PANEL FORM */
.panel{
  background:rgba(255,255,255,.80);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.panel__inner{
  padding:clamp(18px,3vw,28px);
}

.panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}

.panel-head h2{
  margin:0;
  font-size:18px;
  font-weight:900;
}

.pill{
  font-size:12px;
  font-weight:800;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(0,166,81,.14);
  color:var(--eco-green);
}

.msg{
  border-radius:14px;
  padding:10px 12px;
  font-size:13.5px;
  margin-top:10px;
}

.msg--error{background:var(--dangerBg);color:var(--danger)}
.msg--ok{background:var(--okBg);color:var(--ok)}
.msg--warn{background:var(--warnBg);color:var(--warn)}

.form{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

label{
  font-size:13px;
  font-weight:800;
}

.control{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border-radius:16px;
  background:#fff;
  border:1px solid var(--border);
}

.control input{
  border:0;
  outline:none;
  width:100%;
  font-size:15px;
}

.control:focus-within{
  border-color:rgba(0,166,81,.55);
  box-shadow:0 0 0 4px var(--focus);
}

.actions{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.btn{
  border:0;
  border-radius:16px;
  padding:12px;
  font-weight:900;
  background:linear-gradient(135deg,var(--eco-green),var(--eco-green-2));
  color:#fff;
  cursor:pointer;
}

.link{
  background:none;
  border:0;
  padding:0;
  color:var(--eco-green);
  font-weight:800;
  cursor:pointer;
  text-align:left;
}

.panel-foot{
  margin-top:18px;
  padding-top:12px;
  border-top:1px solid rgba(15,23,42,.08);
  font-size:12.5px;
  color:var(--muted);
}

/* Responsive */
@media(max-width:980px){
  .login-shell{grid-template-columns:1fr}
  .panel{order:-1}
}

