:root{
  --eq-green:#0B8F3A;
  --eq-green-2:#0A7A33;
  --eq-yellow:#F2C200;
  --eq-blue:#0B3B8C;
  --bg:#F5F7FA;
  --card:#FFFFFF;
  --text:#0F172A;
  --muted:#64748B;
  --border:#E2E8F0;
  --shadow: 0 20px 45px rgba(2, 6, 23, .10);
  --radius: 18px;
  --header-h: 62px;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(11,143,58,.12), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(242,194,0,.14), transparent 60%),
              radial-gradient(900px 600px at 70% 100%, rgba(11,59,140,.10), transparent 60%),
              var(--bg);
}

a{color:inherit;}
.container{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.login-card{
  width:min(920px, 100%);
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  background:var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

@media (max-width: 840px){
  .login-card{grid-template-columns:1fr;}
}

.brand{
  padding:38px 38px 34px;
  background:
    linear-gradient(135deg, rgba(11,143,58,.10), rgba(242,194,0,.12));
  border-right:1px solid var(--border);
}

@media (max-width: 840px){
  .brand{border-right:none;border-bottom:1px solid var(--border);}
}

.brand .logo{
  display:flex;
  align-items:center;
  gap:14px;
}

.brand img{
  width:150px;
  height:auto;
  filter: drop-shadow(0 12px 18px rgba(2,6,23,.08));
}

.brand h1{
  margin:18px 0 8px;
  font-size: 28px;
  letter-spacing:-.02em;
}

.brand p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
  max-width: 44ch;
}

.form{
  padding:38px;
}

.form h2{
  margin:0 0 12px;
  font-size: 22px;
  letter-spacing:-.01em;
}

.hint{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.45;
  font-size:14px;
}

.field{
  margin: 14px 0;
}

.label{
  display:block;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}

.input{
  position:relative;
}

.input input{
  width:100%;
  padding: 12px 14px 12px 42px;
  border-radius: 12px;
  border:1px solid var(--border);
  outline:none;
  font-size: 15px;
  transition: box-shadow .15s ease, border-color .15s ease;
  background:#fff;
}

.input input:focus{
  border-color: rgba(11,143,58,.55);
  box-shadow: 0 0 0 4px rgba(11,143,58,.12);
}

.icon{
  position:absolute;
  left:12px;
  top:50%;
  transform: translateY(-50%);
  width:18px;
  height:18px;
  opacity:.72;
}

.btn{
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border:none;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 650;
  font-size: 15px;
  color:#0b1a10;
  background: linear-gradient(90deg, var(--eq-yellow), #ffd84a);
  box-shadow: 0 10px 20px rgba(242,194,0,.22);
  transition: transform .06s ease, filter .12s ease;
}

.btn:hover{filter: brightness(0.98);}
.btn:active{transform: translateY(1px);}

.error, .success{
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  margin: 10px 0 0;
}
.error{
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.18);
  color: #991b1b;
}
.success{
  background: rgba(11,143,58,.08);
  border: 1px solid rgba(11,143,58,.18);
  color: #14532d;
}

.footer-note{
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

/* Protected pages */
.header{
  position: fixed;
  top:0; left:0; right:0;
  height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 18px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.header-left{
  display:flex;
  align-items:center;
  gap: 14px;
  min-width: 260px;
}

.header-left img{
  height: 32px;
  width:auto;
}

.title-wrap{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.title-wrap .title{
  font-weight: 750;
  font-size: 14px;
}
.title-wrap .sub{
  color: var(--muted);
  font-size: 12px;
}

.header-right{
  display:flex;
  align-items:center;
  gap:10px;
}

.smallbtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor:pointer;
  font-weight: 650;
  font-size: 13px;
  transition: box-shadow .12s ease, transform .06s ease;
}

.smallbtn:hover{
  box-shadow: 0 10px 18px rgba(2,6,23,.08);
}
.smallbtn:active{transform: translateY(1px);}

.smallbtn.primary{
  border-color: rgba(11,143,58,.35);
}

.smallbtn.danger{
  border-color: rgba(220,38,38,.25);
}

.page{
  position: fixed;
  top: var(--header-h);
  left:0; right:0; bottom:0;
  background:#fff;
}

.page iframe{
  width:100%;
  height:100%;
  border:0;
}
