* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.page-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  padding: 1.25rem 1.5rem;
}

.page-logo {
  display: block;
  width: 120px;
  height: auto;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding-top: 3.5rem;
  background-color: #ffffff;
  background-image: url("banner-prakerja-01.png");
  background-size: contain;
  background-position: right bottom;
  background-repeat: no-repeat;
}

.hero-copy {
  flex: 1 1 50%;
  max-width: 50%;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  text-align: left;
  z-index: 1;
}

.hero-heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

.hero-sub {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  line-height: 1.55;
  color: #475569;
}

.hero-aside {
  flex: 1 1 50%;
  max-width: 50%;
  display: flex;
  align-items: left;
  justify-content: left;
  padding: clamp(1.5rem, 5vw, 3rem);
  z-index: 1;
}

.login-card {
  width: 100%;
  max-width: 22rem;
  padding: 1.75rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(138, 189, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.login-title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
}

.login-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
}

.login-input {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.9375rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.65);
  color: #0f172a;
  outline: none;
}

.login-input::placeholder {
  color: #94a3b8;
}

.login-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.login-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.7rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: #2563eb;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.login-submit:hover {
  background: #1d4ed8;
}

.login-warning {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #b91c1c;
  font-weight: 500;
  min-height: 1.2em; /* keeps button -> message spacing stable */
}

.login-input.invalid {
  border-color: rgba(185, 28, 28, 0.75);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

@media (max-width: 768px) {
  .page-logo {
    width: 96px;
  }

  .hero {
    flex-direction: column;
    justify-content: center;
  }

  .hero-copy,
  .hero-aside {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .hero-aside {
    padding-top: 0;
  }
}
