* {
  box-sizing: border-box;
}

:root {
  --ink: #102631;
  --muted: #4f6270;
  --line: #d2e0dc;
  --surface: #ffffff;
  --brand: #0d6f6c;
  --brand-strong: #0f4f65;
  --accent: #e69a3b;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(13, 111, 108, 0.12), rgba(13, 111, 108, 0) 42%),
    radial-gradient(circle at 92% 92%, rgba(230, 154, 59, 0.14), rgba(230, 154, 59, 0) 36%),
    linear-gradient(180deg, #edf4f2 0%, #e4eeea 100%);
  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 var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 28px 64px rgba(16, 38, 49, 0.14);
  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: 31px;
  max-width: min(280px, 74vw);
  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 #d8e5e1;
  overflow: hidden;
  background: linear-gradient(180deg, #f2f7f5 0%, #e7efec 100%);
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 3.2vw, 40px);
}

.login-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(230, 154, 59, 0.74) 0%, rgba(230, 154, 59, 0) 36%),
    radial-gradient(circle at 90% 26%, rgba(13, 111, 108, 0.76) 0%, rgba(13, 111, 108, 0) 44%),
    radial-gradient(circle at 44% 78%, rgba(15, 79, 101, 0.62) 0%, rgba(15, 79, 101, 0) 48%),
    linear-gradient(166deg, #f9fcfb 4%, #edf4f2 52%, #e5efec 100%);
  opacity: 0.97;
}

.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: #16585f;
  font-weight: 700;
}

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

.login-visual-copy p {
  margin: 1rem 0 0;
  color: #28495a;
  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 #d8e5e1;
    min-height: 280px;
  }
}

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

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

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

  .login-visual {
    display: none;
  }
}
