:root {
  color-scheme: light;
  --page: #f5f7f3;
  --surface: #ffffff;
  --ink: #17211b;
  --muted: #637168;
  --line: #d8e2dc;
  --green: #1f7a4d;
  --green-dark: #125f3a;
  --gold: #d9a441;
  --shadow: 0 22px 60px rgba(25, 48, 36, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(12, 36, 24, 0.78), rgba(12, 36, 24, 0.44) 48%, rgba(12, 36, 24, 0.18)),
    url("../assets/banyuwangi-login.jpg") center / cover no-repeat fixed;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 430px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  width: min(1080px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0;
}

.login-hero {
  display: grid;
  gap: 20px;
  padding: clamp(10px, 3vw, 30px) 0;
}

.eyebrow,
h1,
h2,
p {
  margin: 0;
}

.eyebrow {
  color: #c7f0d4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 620px;
  margin-top: 10px;
  color: #ffffff;
  font-size: clamp(2.1rem, 6vw, 4.7rem);
  line-height: 1;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.hero-copy {
  max-width: 540px;
  color: #e8f5ec;
  font-size: 1.05rem;
  line-height: 1.7;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.login-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.panel-header {
  margin-bottom: 22px;
}

.panel-header h2 {
  margin-top: 7px;
  font-size: 1.45rem;
}

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

label {
  display: grid;
  gap: 8px;
  color: #344139;
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fbfdfb;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.16);
}

.captcha-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 122, 77, 0.08), transparent 45%),
    #f8fbf8;
}

.captcha-heading {
  display: grid;
  gap: 4px;
}

.captcha-heading strong {
  color: #20362a;
  font-size: 0.94rem;
}

.captcha-heading span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 400;
}

.captcha-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.captcha-code {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 1px dashed #9bb6a5;
  border-radius: 6px;
  background:
    repeating-linear-gradient(45deg, rgba(31, 122, 77, 0.08) 0 8px, transparent 8px 16px),
    #ffffff;
  color: #143724;
  font-family: "Courier New", monospace;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 4px;
  user-select: none;
}

.captcha-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  margin-top: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #edf6f0);
  color: var(--green-dark);
  box-shadow: 0 10px 24px rgba(25, 48, 36, 0.12);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.captcha-refresh span {
  display: block;
  font-size: 1.3rem;
  line-height: 1;
}

.captcha-refresh:hover {
  background: linear-gradient(180deg, #f8fffa, #dfeee4);
  box-shadow: 0 14px 30px rgba(25, 48, 36, 0.18);
  transform: translateY(-1px);
}

.captcha-refresh:active {
  box-shadow: 0 8px 18px rgba(25, 48, 36, 0.14);
  transform: translateY(0);
}

.captcha-error {
  display: none;
  color: #b44336;
  font-size: 0.86rem;
  font-weight: 700;
}

.captcha-error.visible {
  display: block;
}

button {
  min-height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: var(--green-dark);
}

@media (max-width: 760px) {
  .login-page {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .login-hero {
    padding-bottom: 0;
  }

  h1 {
    font-size: clamp(2rem, 13vw, 3.4rem);
  }
}
