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

#login-section {
  position: fixed;
  inset: 0;
  z-index: 1000;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #162033;
  background:
    radial-gradient(circle at 24% 18%, rgba(201, 168, 76, 0.24), transparent 30%),
    linear-gradient(135deg, #061838 0%, #0c2b5e 52%, #123f7c 100%);
}

#login-section::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.login-container {
  width: min(100%, 360px);
  position: relative;
  z-index: 1;
}

.login-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(2, 8, 23, 0.34);
  backdrop-filter: blur(18px);
  animation: loginIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes loginIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 16px;
}

.login-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 12px 20px rgba(12, 43, 94, 0.22)) drop-shadow(0 0 14px rgba(201, 168, 76, 0.18));
}

.login-header h1 {
  color: #0c2b5e;
  font-size: 17px;
  line-height: 1.18;
  font-weight: 850;
}

.login-header h1::after {
  content: "";
  display: block;
  width: 58px;
  height: 2px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
}

.login-header p {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.form-group input {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  outline: none;
  background: #f8fafc;
  color: #162033;
  font-size: 14px;
  font-weight: 650;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.form-group input:focus {
  border-color: #1557a6;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(21, 87, 166, 0.14);
  transform: translateY(-1px);
}

.login-btn {
  min-height: 42px;
  margin-top: 2px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #0c2b5e, #1557a6);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(12, 43, 94, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 18px 36px rgba(12, 43, 94, 0.3);
}

.login-btn:active {
  transform: translateY(0);
}

.error-message {
  display: none;
  min-height: 16px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffe9ed;
  color: #a42536;
  text-align: center;
  font-size: 12px;
  font-weight: 750;
}

.error-message.show {
  display: block;
  animation: shake 0.36s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

.login-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5ebf2;
  color: #7b8798;
  text-align: center;
  font-size: 10px;
  font-weight: 650;
}

@media (max-width: 460px) {
  #login-section {
    padding: 16px;
  }

  .login-card {
    padding: 22px;
    border-radius: 16px;
  }
}
