/* ============================================================
   LOGIN.CSS
   ============================================================ */

#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px clamp(24px, 8vw, 128px);
  background:
    linear-gradient(90deg, rgba(15, 18, 23, 0.58) 0%, rgba(15, 18, 23, 0.24) 42%, rgba(255, 255, 255, 0.72) 100%),
    url("https://wallpapers.com/images/hd/industrial-background-1920-x-1080-c098arg81f5juqke.jpg") center / cover no-repeat;
  position: fixed;
  inset: 0;
  z-index: 100;
}

#login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(237, 50, 55, 0.24), rgba(237, 50, 55, 0.05) 34%, rgba(18, 24, 32, 0.28)),
    rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.login-card {
  position: relative;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-top: 0;
  border-radius: 12px;
  padding: 42px 40px 38px;
  width: min(420px, 100%);
  box-shadow: 0 24px 70px rgba(20, 27, 38, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeUp 0.5s ease;
}

.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .logo-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  font-size: 20px;
  background: #ed3237;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(237, 50, 55, 0.28);
}

.login-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.4px;
  color: #ed3237;
  text-transform: uppercase;
}

.login-welcome {
  font-family: 'Poppins', sans-serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  color: #111827;
  text-align: center;
  margin-bottom: 8px;
}

.login-subtitle {
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  margin: 0 0 28px;
}

.login-field { margin-bottom: 16px; }
.login-field input {
  width: 100%;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  color: #101828;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  outline: none;
  transition: .2s;
}

.login-field input:focus {
  border-color: #b8c2cf;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.login-field input::placeholder { color: #98a2b3; }

.btn-login {
  width: 100%;
  min-height: 46px;
  padding: 13px;
  margin-top: 8px;
  background: #ed3237;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}

.btn-login:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}

.btn-login:hover {
  background: #cf252b;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(237, 50, 55, 0.24);
}

.btn-login:disabled:hover {
  background: #ed3237;
  transform: none;
  box-shadow: none;
}

.login-err {
  color: #c1121f;
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
  display: none;
}

.login-err.is-warning {
  color: #9f1239;
  background: rgba(237, 50, 55, 0.08);
  border: 1px solid rgba(237, 50, 55, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  #login-screen {
    justify-content: center;
    padding: 24px;
    background:
      linear-gradient(180deg, rgba(15, 18, 23, 0.38), rgba(255, 255, 255, 0.82)),
      url("https://wallpapers.com/images/hd/industrial-background-1920-x-1080-c098arg81f5juqke.jpg") center / cover no-repeat;
  }

  .login-card {
    padding: 34px 26px 30px;
    background: rgba(255, 255, 255, 0.84);
  }
}
