*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

:root{
  --bg:#050504;
  --panel:#10100f;
  --line:rgba(255,255,255,.14);
  --line-gold:rgba(241,189,85,.5);
  --text:#fffaf0;
  --muted:#bbb4aa;
  --muted-2:#827a70;
  --gold:#f1bd55;
  --gold-2:#b77722;
  --gold-3:#ffe08a;
  --green:#32d37b;
  --red:#ef6f6c;
  --shadow:0 30px 92px rgba(0,0,0,.56);
}

html{
  -webkit-text-size-adjust:100%;
}

body{
  min-height:100svh;
  background:
    radial-gradient(circle at 78% 26%, rgba(241,189,85,.1), transparent 330px),
    linear-gradient(180deg, #050504 0%, #080808 55%, #030303 100%);
  color:var(--text);
  font-family:'Inter', Arial, sans-serif;
  overflow-x:hidden;
}

body::before{
  content:'';
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    linear-gradient(110deg, transparent 0 70%, rgba(241,189,85,.2) 70.3%, rgba(241,189,85,.03) 71.2%, transparent 72%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size:100% 100%, 62px 62px, 62px 62px;
  mask-image:linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,.25) 85%, transparent);
}

body::after{
  content:'';
  position:fixed;
  inset:0;
  z-index:-3;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.9)),
    url('../assets/corte.jpeg') center / cover;
  opacity:.16;
  filter:blur(16px);
  transform:scale(1.05);
}

button,
input{
  font:inherit;
}

button,
a{
  -webkit-tap-highlight-color:transparent;
}

button{
  cursor:pointer;
}

svg{
  width:20px;
  height:20px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:2;
}

.login-shell{
  width:min(100%, 1760px);
  min-height:100svh;
  margin:0 auto;
  display:grid;
  gap:28px;
  padding:24px 18px 36px;
}

.admin-hero{
  min-height:720px;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:28px 0 0;
}

.admin-hero::before{
  content:'';
  position:absolute;
  inset:70px 0 auto 0;
  height:380px;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.74), rgba(0,0,0,.16) 58%, transparent),
    url('../assets/corte.jpeg') center 43% / cover;
  opacity:.42;
  filter:saturate(.72);
  mask-image:linear-gradient(180deg, transparent, #000 18%, #000 72%, transparent);
}

.brand{
  position:relative;
  z-index:3;
  width:max-content;
  max-width:100%;
  display:flex;
  align-items:center;
  gap:16px;
  color:var(--text);
  text-decoration:none;
}

.brand-mark{
  width:70px;
  height:70px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border:1px solid var(--line-gold);
  border-radius:10px;
  background:linear-gradient(145deg, rgba(241,189,85,.22), rgba(241,189,85,.04));
  color:var(--gold-3);
  font-family:'Poppins', Arial, sans-serif;
  font-size:38px;
  font-weight:900;
  box-shadow:0 0 0 1px rgba(0,0,0,.28) inset, 0 18px 38px rgba(241,189,85,.16);
}

.brand small,
.hero-copy > p:first-child{
  color:var(--gold);
  font-size:14px;
  font-weight:900;
}

.brand small{
  text-transform:uppercase;
}

.brand strong{
  display:block;
  margin-top:5px;
  font-size:23px;
  font-weight:900;
  line-height:1.05;
  text-transform:uppercase;
}

.hero-copy{
  position:relative;
  z-index:3;
  width:min(100%, 530px);
  margin-top:120px;
}

.hero-copy h1{
  margin-top:10px;
  font-family:'Poppins', Arial, sans-serif;
  font-size:52px;
  font-weight:900;
  line-height:1.04;
  letter-spacing:0;
}

.hero-copy h1 span{
  display:block;
  color:var(--gold);
}

.hero-text{
  max-width:450px;
  margin-top:22px;
  color:#eee7dc;
  font-size:18px;
  line-height:1.58;
}

.feature-list{
  position:relative;
  z-index:3;
  display:grid;
  gap:16px;
  width:min(100%, 410px);
  margin-top:36px;
}

.feature-list article{
  display:grid;
  grid-template-columns:58px 1fr;
  gap:16px;
  align-items:center;
}

.feature-list svg{
  width:58px;
  height:58px;
  padding:14px;
  border:1px solid rgba(241,189,85,.32);
  border-radius:8px;
  color:var(--gold-3);
  background:rgba(241,189,85,.055);
}

.feature-list strong{
  display:block;
  color:var(--gold-3);
  font-size:16px;
  line-height:1.25;
}

.feature-list span{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:15px;
  line-height:1.35;
}

.hero-person{
  position:absolute;
  z-index:2;
  right:5%;
  bottom:116px;
  width:min(48%, 520px);
  max-height:690px;
  object-fit:contain;
  object-position:center bottom;
  filter:drop-shadow(0 34px 54px rgba(0,0,0,.65));
  mask-image:linear-gradient(180deg, #000 0 82%, transparent 100%);
}

.hero-seal{
  position:absolute;
  z-index:1;
  right:8%;
  top:185px;
  width:205px;
  height:205px;
  display:grid;
  place-items:center;
  border:1px solid rgba(241,189,85,.14);
  border-radius:50%;
  color:var(--gold);
  opacity:.16;
}

.hero-seal::before,
.hero-seal::after{
  content:'';
  position:absolute;
  inset:18px;
  border:1px solid rgba(241,189,85,.16);
  border-radius:50%;
}

.hero-seal::after{
  inset:36px;
}

.hero-seal svg{
  width:78px;
  height:78px;
}

.admin-stats{
  position:relative;
  z-index:4;
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  margin-top:34px;
  padding:22px;
  border:1px solid rgba(241,189,85,.38);
  border-radius:10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.014)),
    rgba(10,10,9,.82);
  box-shadow:var(--shadow);
  backdrop-filter:blur(14px);
}

.admin-stats article{
  display:flex;
  align-items:center;
  gap:18px;
  min-height:92px;
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.09);
}

.admin-stats article:last-child{
  border-bottom:0;
}

.admin-stats svg{
  width:52px;
  height:52px;
  color:var(--gold-3);
}

.admin-stats strong{
  display:block;
  color:var(--text);
  font-family:'Poppins', Arial, sans-serif;
  font-size:30px;
  line-height:1;
}

.admin-stats span,
.admin-stats small{
  display:block;
  margin-top:8px;
  color:var(--muted);
  font-size:14px;
}

.admin-stats article:nth-child(2) span{
  color:var(--gold-3);
  letter-spacing:5px;
}

.security-footnote{
  position:relative;
  z-index:3;
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:28px;
  color:var(--muted);
  font-size:14px;
}

.security-footnote svg{
  width:18px;
  height:18px;
}

.login-panel{
  align-self:center;
  position:relative;
  overflow:hidden;
  display:grid;
  justify-items:center;
  padding:42px 28px 28px;
  border:1px solid rgba(241,189,85,.36);
  border-radius:18px;
  background:
    radial-gradient(circle at 50% 17%, rgba(241,189,85,.12), transparent 220px),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(15,15,14,.88);
  box-shadow:var(--shadow), inset 0 0 0 1px rgba(0,0,0,.22);
}

.login-panel::before{
  content:'';
  position:absolute;
  inset:-120px 18% auto;
  height:260px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(241,189,85,.15), transparent 65%);
}

.login-panel::after{
  content:'';
  position:absolute;
  right:-1px;
  top:40px;
  width:1px;
  height:180px;
  background:linear-gradient(180deg, transparent, var(--gold), transparent);
  box-shadow:0 0 22px rgba(241,189,85,.6);
}

.panel-logo{
  position:relative;
  z-index:1;
  width:110px;
  height:110px;
  display:grid;
  place-items:center;
  margin-bottom:26px;
  border-radius:50%;
  background:linear-gradient(135deg, #ffe08a, #b77722);
  color:#120d06;
  font-family:'Poppins', Arial, sans-serif;
  font-size:43px;
  font-weight:900;
  box-shadow:
    0 0 0 20px rgba(241,189,85,.055),
    0 0 0 40px rgba(241,189,85,.032),
    0 22px 52px rgba(241,189,85,.18);
}

.panel-heading{
  position:relative;
  z-index:1;
  margin-bottom:30px;
  text-align:center;
}

.panel-heading h2{
  font-family:'Poppins', Arial, sans-serif;
  font-size:32px;
  line-height:1.12;
}

.panel-heading p{
  margin-top:12px;
  color:var(--muted);
  font-size:18px;
}

.login-form{
  position:relative;
  z-index:1;
  width:100%;
  display:grid;
  gap:20px;
}

.input-group{
  position:relative;
  display:grid;
  gap:9px;
}

.input-group span{
  color:var(--gold-3);
  font-size:14px;
  font-weight:900;
}

.input-group::before{
  content:'';
  position:absolute;
  left:18px;
  bottom:17px;
  width:22px;
  height:22px;
  opacity:.75;
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
}

.input-user::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8b1a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.input-password::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8b1a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}

.input-group input{
  width:100%;
  height:60px;
  border:1px solid rgba(255,255,255,.14);
  outline:none;
  border-radius:10px;
  background:linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), rgba(12,12,11,.92);
  color:var(--text);
  padding:0 54px;
  font-size:16px;
}

.input-group input::placeholder{
  color:#8f877d;
}

.input-group input:focus{
  border-color:var(--line-gold);
  box-shadow:0 0 0 4px rgba(241,189,85,.08);
}

#togglePassword{
  position:absolute;
  right:14px;
  bottom:12px;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--muted);
}

.form-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.remember-check{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--gold-3);
  font-size:14px;
  font-weight:800;
}

.remember-check input{
  width:24px;
  height:24px;
  accent-color:var(--gold);
}

.form-row a{
  color:var(--gold-3);
  font-size:14px;
  font-weight:900;
  text-decoration:none;
}

#loginButton{
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  border:1px solid rgba(255,225,152,.5);
  border-radius:10px;
  background:linear-gradient(135deg, #ffe08a 0%, #f2ba52 54%, #b77722 100%);
  color:#120d06;
  font-size:20px;
  font-weight:900;
  box-shadow:0 22px 52px rgba(241,189,85,.26);
  transition:transform .2s ease, box-shadow .2s ease;
}

#loginButton:hover{
  transform:translateY(-2px);
  box-shadow:0 26px 62px rgba(241,189,85,.32);
}

#loginButton:active{
  transform:scale(.985);
}

.restricted-note{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:34px;
  color:var(--muted);
  font-size:16px;
}

.restricted-note svg{
  width:20px;
  height:20px;
  color:var(--gold);
}

#toast{
  position:fixed;
  bottom:22px;
  left:50%;
  width:calc(100% - 28px);
  max-width:420px;
  z-index:9999;
  transform:translate(-50%, 18px);
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#14110d;
  color:var(--text);
  box-shadow:0 18px 45px rgba(0,0,0,.42);
  font-size:14px;
  font-weight:900;
  opacity:0;
  pointer-events:none;
  transition:.25s;
}

#toast.show{
  opacity:1;
  transform:translate(-50%, 0);
}

#toast.error{
  border-color:rgba(239,111,108,.58);
  color:#ffaaa8;
}

#toast.success{
  border-color:rgba(50,211,123,.58);
  color:#91f2bb;
}

@media(max-width:620px){
  .login-shell{
    padding-left:14px;
    padding-right:14px;
  }

  .admin-hero{
    min-height:auto;
    padding-top:10px;
  }

  .brand-mark{
    width:52px;
    height:52px;
    font-size:28px;
  }

  .brand strong{
    font-size:18px;
  }

  .hero-copy{
    margin-top:52px;
  }

  .hero-copy h1{
    font-size:38px;
  }

  .hero-person{
    position:relative;
    right:auto;
    bottom:auto;
    width:min(100%, 430px);
    margin:28px auto 0;
  }

  .hero-seal{
    display:none;
  }

  .admin-stats{
    margin-top:0;
  }

  .login-panel{
    padding:34px 18px 22px;
  }

  .panel-logo{
    width:86px;
    height:86px;
    font-size:34px;
  }

  .panel-heading h2{
    font-size:27px;
  }

  .panel-heading p{
    font-size:16px;
  }

  .form-row{
    align-items:flex-start;
    flex-direction:column;
  }

  #loginButton{
    min-height:64px;
    font-size:17px;
  }
}

@media(min-width:760px){
  .admin-stats{
    grid-template-columns:repeat(3, 1fr);
  }

  .admin-stats article{
    min-height:100px;
    padding:8px 24px;
    border-right:1px solid rgba(255,255,255,.09);
    border-bottom:0;
  }

  .admin-stats article:last-child{
    border-right:0;
  }
}

@media(min-width:1080px){
  .login-shell{
    grid-template-columns:minmax(600px, 1fr) minmax(460px, 590px);
    align-items:center;
    gap:74px;
    padding:40px;
  }

  .admin-hero{
    min-height:calc(100svh - 80px);
  }

  .login-panel{
    min-height:740px;
    padding:78px 42px 34px;
  }
}

@media(min-width:1360px){
  .hero-copy h1{
    font-size:58px;
  }

  .hero-person{
    right:7%;
    width:min(48%, 560px);
  }
}
