.login-body{
  margin:0;
  min-height:100dvh;
  font-family:"Montserrat", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,79,0,.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(30,42,91,.18), transparent 35%),
    linear-gradient(135deg,#f7f9fc,#eef2f7);
}

.login-shell{
  min-height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.login-card{
  width:100%;
  max-width:430px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(30,42,91,.12);
  border-radius:28px;
  box-shadow:0 24px 70px rgba(30,42,91,.20);
  padding:34px 34px 26px;

  /* baja un poco el card sin romper el centrado */
  transform:translateY(-60px);
}

.login-brand{
  display:flex;
  justify-content:center;
  margin-bottom:26px;
}

.login-brand img{
  width:210px;
  max-width:80%;
}

.login-heading{
  text-align:center;
  margin-bottom:28px;
}

.login-heading h1{
  margin:0;
  font-family:"Michroma", "Montserrat", sans-serif;
  font-size:22px;
  color:#1E2A5B;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.login-heading p{
  margin:8px 0 0;
  font-size:13px;
  color:#64748b;
  font-weight:600;
}

.login-form label{
  display:block;
  margin:14px 0 7px;
  color:#1E2A5B;
  font-size:12px;
  font-weight:800;
}

.login-input-wrap{
  height:50px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 14px;
  border:1px solid rgba(30,42,91,.18);
  border-radius:16px;
  background:#f1f5f9;
  transition:.18s ease;
}

.login-input-wrap:focus-within{
  border-color:rgba(255,79,0,.65);
  box-shadow:0 0 0 4px rgba(255,79,0,.14);
}

.login-input-wrap .material-icons{
  color:#FF4F00;
  font-size:21px;
}

.login-input-wrap input{
  width:100%;
  height:100%;
  border:0;
  outline:0;
  background:transparent !important;
  box-shadow:none !important;
  appearance:none;
  -webkit-appearance:none;

  font-family:"Montserrat", sans-serif;
  font-size:15px;
  color:#0f172a;
}

.login-input-wrap input::placeholder{
  color:#94a3b8;
}

.newpassw {
    border:none !important;
}

.login-btn{
  width:100%;
  height:52px;
  border:0;
  margin-top:24px;
  border-radius:16px;
  background:#FF4F00;
  color:#fff;
  font-family:"Montserrat", sans-serif;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow:0 14px 26px rgba(255,79,0,.24);
  transition:.18s ease;
}

.login-btn:hover{
  background:#e74700;
  transform:translateY(-1px);
}

.login-error{
  display:none;
  margin-top:14px;
  padding:11px 12px;
  border-radius:14px;
  background:#fde8e8;
  color:#b42318;
  text-align:center;
  font-size:13px;
  font-weight:700;
}

.login-error.show{
  display:block;
}

.login-footer{
  margin-top:24px;
  text-align:center;
  font-size:11px;
  color:#64748b;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.25);
}

.modal-head {
  padding: 22px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
}

.settings-form {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.settings-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.settings-form input {
  height: 44px;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  padding: 0 12px;
}

.password-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #64748b;
}

@media(max-width:500px){
  .login-card{
    padding:28px 22px 24px;
    border-radius:24px;
  }

  .login-heading h1{
    font-size:19px;
  }
}

@media(max-width:768px){
  .login-shell{
    align-items:flex-start;
    padding-top:72px;
    padding-bottom:24px;
  }

  .login-card{
    transform:none;
  }
}

@media(max-width:500px){
  .login-shell{
    padding:56px 18px 24px;
  }

  .login-card{
    padding:28px 22px 24px;
    border-radius:24px;
  }

  .login-heading h1{
    font-size:19px;
  }
}

/* Chrome / Safari autofill fix */
.login-input-wrap input:-webkit-autofill,
.login-input-wrap input:-webkit-autofill:hover,
.login-input-wrap input:-webkit-autofill:focus,
.login-input-wrap input:-webkit-autofill:active{
  -webkit-text-fill-color:#0f172a !important;

  -webkit-box-shadow:
    0 0 0px 1000px transparent inset !important;

  background-color:transparent !important;

  transition:
    background-color 5000s ease-in-out 0s;
}