:root{
  --red:#ec0016;
  --dark:#111;
  --cream:#f5efe7;
  --muted:#716a64;
  --line:#e7ddd2;
}

*{
  box-sizing:border-box;
}

html,
body{
  min-height:100%;
}

body{
  margin:0;
  color:var(--dark);
  background:var(--cream);
  font-family:Arial,Helvetica,sans-serif;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input{
  font:inherit;
}

.login-shell{
  display:grid;
  grid-template-columns:minmax(440px,1.05fr) minmax(420px,.95fr);
  min-height:100vh;
}

.login-visual{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:100vh;
  padding:38px clamp(38px,5vw,76px);
  overflow:hidden;
  color:#fff;
  background:
    radial-gradient(circle at 92% 10%,rgba(255,255,255,.15),transparent 23%),
    linear-gradient(150deg,#f00019 0%,#d60015 55%,#a90011 100%);
}

.login-visual::before{
  content:"";
  position:absolute;
  right:-140px;
  bottom:-170px;
  width:520px;
  height:520px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:50%;
}

.login-visual::after{
  content:"";
  position:absolute;
  right:-30px;
  bottom:-80px;
  width:300px;
  height:300px;
  border:1px solid rgba(255,255,255,.17);
  border-radius:50%;
}

.back-link{
  position:relative;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:9px;
  width:max-content;
  color:rgba(255,255,255,.8);
  font-size:13px;
  font-weight:800;
}

.back-link:hover{
  color:#fff;
}

.back-link span{
  font-size:20px;
}

.visual-content{
  position:relative;
  z-index:2;
  max-width:750px;
}

.agency-logo{
  display:block;
  width:190px;
  max-height:120px;
  margin-bottom:42px;
  object-fit:cover;
  border-radius:19px;
  box-shadow:0 22px 50px rgba(80,0,8,.25);
}

.visual-eyebrow,
.eyebrow{
  font-size:11px;
  font-weight:900;
  letter-spacing:1.9px;
}

.visual-eyebrow{
  color:rgba(255,255,255,.68);
}

.visual-content h1{
  max-width:770px;
  margin:16px 0 22px;
  font-size:clamp(54px,6vw,92px);
  line-height:.91;
  letter-spacing:-4px;
}

.visual-content h1 em{
  display:block;
  color:#fff5f5;
  font-style:normal;
}

.visual-content p{
  max-width:620px;
  margin:0;
  color:rgba(255,255,255,.78);
  font-size:19px;
  line-height:1.6;
}

.visual-footer{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:rgba(255,255,255,.6);
  font-size:10px;
  font-weight:900;
  letter-spacing:1.5px;
}

.login-panel{
  display:grid;
  place-items:center;
  min-height:100vh;
  padding:40px clamp(24px,5vw,76px);
  background:var(--cream);
}

.login-card{
  width:min(100%,470px);
}

.mobile-logo{
  display:none;
}

.login-heading{
  margin-bottom:28px;
}

.eyebrow{
  color:var(--red);
}

.login-heading h2{
  margin:10px 0 8px;
  font-size:48px;
  line-height:1;
  letter-spacing:-2px;
}

.login-heading p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}

.login-alert{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:20px;
  padding:13px 14px;
  border:1px solid #ffc5cb;
  border-radius:12px;
  color:#a71927;
  background:#fff0f2;
  font-size:13px;
  font-weight:800;
}

.login-alert span{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  flex:0 0 24px;
  border-radius:50%;
  color:#fff;
  background:var(--red);
}

form{
  display:grid;
  gap:9px;
}

label{
  margin-top:6px;
  font-size:13px;
  font-weight:900;
}

.password-label{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:7px;
}

.input-wrap{
  position:relative;
  display:flex;
  align-items:center;
}

.input-wrap svg{
  position:absolute;
  left:15px;
  width:19px;
  height:19px;
  fill:none;
  stroke:#8d8680;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
}

.input-wrap input{
  width:100%;
  height:54px;
  padding:0 52px 0 46px;
  border:1px solid var(--line);
  border-radius:13px;
  color:#151515;
  background:#fff;
  outline:none;
  box-shadow:0 4px 12px rgba(0,0,0,.025);
  transition:.18s ease;
}

.input-wrap input::placeholder{
  color:#aaa39d;
}

.input-wrap input:focus{
  border-color:var(--red);
  box-shadow:0 0 0 4px rgba(236,0,22,.09);
}

.toggle-password{
  position:absolute;
  right:7px;
  height:40px;
  padding:0 12px;
  border:0;
  border-radius:9px;
  color:var(--red);
  background:#ffe7ea;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}

.login-button{
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
  min-height:56px;
  margin-top:14px;
  padding:0 19px;
  border:0;
  border-radius:13px;
  color:#fff;
  background:var(--dark);
  font-weight:900;
  cursor:pointer;
  transition:.18s ease;
}

.login-button:hover{
  transform:translateY(-1px);
  background:var(--red);
  box-shadow:0 13px 30px rgba(236,0,22,.2);
}

.login-button b{
  font-size:22px;
}

.secure-note{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin-top:20px;
  color:#8c857e;
  font-size:11px;
  font-weight:700;
}

.secure-note span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#22a653;
  box-shadow:0 0 0 4px #dff5e6;
}

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

  .login-visual{
    display:none;
  }

  .login-panel{
    padding:30px 20px;
  }

  .mobile-logo{
    display:block;
    margin-bottom:28px;
  }

  .mobile-logo img{
    display:block;
    width:160px;
    max-height:95px;
    object-fit:cover;
    border-radius:16px;
    box-shadow:0 14px 35px rgba(0,0,0,.1);
  }
}

@media(max-width:520px){
  .login-heading h2{
    font-size:40px;
  }

  .login-panel{
    align-items:start;
    padding-top:38px;
  }
}
