* {
  box-sizing: border-box;
}

:root {
  --ink: #102631;
  --muted: #4f6270;
  --line: rgba(209, 226, 214, 0.74);
  --surface: #ffffff;
  --brand: #0d6f6c;
  --brand-strong: #0f4f65;
  --accent: #e69a3b;
  --page-deep: #0d3d2f;
  --page-deep-soft: #135242;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background:
    linear-gradient(135deg, rgba(11, 45, 36, 0.88) 0%, rgba(13, 61, 47, 0.82) 44%, rgba(19, 82, 66, 0.8) 100%),
    radial-gradient(circle at 12% 16%, rgba(95, 194, 85, 0.18), rgba(95, 194, 85, 0) 28%),
    radial-gradient(circle at 86% 14%, rgba(230, 154, 59, 0.14), rgba(230, 154, 59, 0) 26%);
  color: var(--ink);
}

.login-layout {
  min-height: 100vh;
  padding: clamp(16px, 2vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-shell {
  width: min(1160px, 100%);
  min-height: min(760px, calc(100vh - 32px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow:
    0 34px 72px rgba(5, 20, 15, 0.34),
    0 2px 0 rgba(255, 255, 255, 0.12) inset;
  backdrop-filter: blur(10px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
}

.login-panel {
  padding: clamp(28px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.brand-chip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0 0 1.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.brand-chip img {
  display: block;
  width: auto;
  height: 77px;
  max-width: min(624px, 100%);
  object-fit: contain;
}

h1 {
  margin: 0;
  font-size: clamp(1.72rem, 2.6vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.intro-text {
  margin: 0.7rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.field label {
  display: block;
  margin-bottom: 0.42rem;
  font-size: 0.87rem;
  color: var(--muted);
  font-weight: 500;
}

.field input {
  width: 100%;
  border-radius: 13px;
  border: 1px solid #c8d8d4;
  background: #fbfdfc;
  color: var(--ink);
  min-height: 48px;
  padding: 0.75rem 0.86rem;
  font-size: 0.94rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(13, 111, 108, 0.18);
}

.login-utility-row {
  margin-top: -2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.muted-note {
  margin: 0;
  color: #657783;
  font-size: 0.82rem;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 0.74rem 0.82rem;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

#login-button {
  width: 100%;
  margin-top: 4px;
  min-height: 48px;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 79, 101, 0.26);
}

.text-button {
  border: 0;
  background: transparent;
  color: #1f5b65;
  padding: 0;
  font-size: 0.84rem;
  min-height: auto;
}

.text-button:hover:not(:disabled) {
  transform: none;
  color: #0b414f;
}

.result-box,
.error-box {
  margin-top: 0.95rem;
  border-radius: 13px;
  padding: 0.78rem 0.82rem;
  font-size: 0.88rem;
}

.result-box {
  border: 1px solid #bfe9d8;
  background: #effbf5;
  color: #0f6750;
}

.error-box {
  border: 1px solid #f4d2bf;
  background: #fff6ef;
  color: #8a4a1d;
}

.login-visual {
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  background: #11382f;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 3.2vw, 40px);
}

.login-visual-image {
  position: absolute;
  inset: 0;
  background-image: url("/login-home-bg.png");
  background-size: cover;
  background-position: center 28%;
  transform: scale(1.02);
}

.login-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 33, 27, 0.92) 0%, rgba(9, 33, 27, 0.68) 36%, rgba(9, 33, 27, 0.36) 64%, rgba(9, 33, 27, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 31, 25, 0.18) 0%, rgba(8, 31, 25, 0.62) 100%),
    radial-gradient(circle at 78% 18%, rgba(230, 154, 59, 0.22) 0%, rgba(230, 154, 59, 0) 32%),
    radial-gradient(circle at 18% 82%, rgba(95, 194, 85, 0.18) 0%, rgba(95, 194, 85, 0) 34%);
}

.login-visual-copy {
  position: relative;
  max-width: 440px;
  z-index: 1;
}

.visual-kicker {
  margin: 0 0 0.95rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.login-visual-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}

.login-visual-copy p {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 400px;
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-panel {
    max-width: 620px;
  }

  .login-visual {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    min-height: 280px;
  }
}

@media (max-width: 700px) {
  .login-layout {
    padding: 10px;
  }

  .login-shell {
    border-radius: 14px;
  }

  .login-panel {
    padding: 20px 16px;
  }

  .brand-chip img {
    height: 65px;
  }

  .login-visual {
    display: none;
  }
}
