:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #172b33;
  background: #f5f8f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; }

button, input { font: inherit; }

.login-layout {
  display: grid;
  grid-template-columns: minmax(380px, 46%) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.editorial-scene {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: #fff;
  background: #1b4541 url("/login-scene.jpg") center / cover no-repeat;
}

.scene-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 25, 26, .1) 30%, rgba(4, 25, 26, .78) 100%);
}

.scene-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: inherit;
  padding: 36px 45px 45px;
}

.scene-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
}

.scene-bottom { max-width: 530px; }
.scene-rule { display: block; width: 42px; height: 3px; margin-bottom: 22px; background: #71d7a8; }
.scene-bottom p { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.scene-bottom h2 { max-width: 470px; margin: 0 0 22px; font-size: 37px; line-height: 1.16; font-weight: 500; }
.scene-caption { font-size: 12px; color: #dce8e4; }

.login-side {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 48px 38px;
  background: #f9fbfa;
}

.login-inner { width: min(100%, 418px); }
.mobile-brand { display: none; }

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #0b7450;
  font-size: 13px;
  font-weight: 600;
}
.label-line { width: 20px; height: 2px; background: currentColor; }

h1 { margin: 0; font-size: 34px; line-height: 1.18; font-weight: 500; }
.intro { margin: 12px 0 34px; color: #607078; font-size: 15px; line-height: 1.5; }

.login-form { display: grid; }
.login-form label { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #2d424b; }
.login-form > input, .password-field {
  width: 100%;
  height: 49px;
  margin: 0 0 23px;
  border: 1px solid #cbd8d8;
  border-radius: 6px;
  background: #fff;
}
.login-form > input, .password-field input { padding: 0 14px; font-size: 15px; color: #172b33; }
.password-field { display: flex; align-items: center; overflow: hidden; }
.password-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; }
.password-toggle { align-self: stretch; padding: 0 14px; border: 0; background: transparent; color: #0c7354; font-size: 13px; cursor: pointer; }
.password-toggle:hover { color: #07543e; }

input:focus { outline: 2px solid #2d8b71; outline-offset: 2px; }
.password-field:focus-within { border-color: #2d8b71; outline: 2px solid #2d8b71; outline-offset: 2px; }
.password-field input:focus { outline: 0; }
button:focus-visible { outline: 2px solid #0d73b8; outline-offset: 3px; }

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  margin-top: 3px;
  padding: 0 18px;
  border: 1px solid #0a6a4c;
  border-radius: 6px;
  background: #0b7654;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.submit-button:hover { background: #096747; }
.submit-button span { font-size: 22px; line-height: 1; font-weight: 400; }

.login-footnote { margin: 25px 0 0; color: #718087; font-size: 12px; }
.error-message { margin: 0 0 23px; padding: 12px 14px; border-left: 3px solid #cc5848; background: #fff2ef; color: #8d372d; font-size: 13px; line-height: 1.45; }

@media (max-width: 800px) {
  .login-layout { display: block; }
  .editorial-scene { min-height: 145px; height: 145px; background-position: center 54%; }
  .scene-shade { background: linear-gradient(90deg, rgba(4,25,26,.36), rgba(4,25,26,.08)); }
  .scene-content { min-height: 145px; padding: 18px 24px; }
  .scene-logo, .scene-rule, .scene-bottom h2, .scene-caption { display: none; }
  .scene-bottom p { margin: 0; font-size: 13px; }
  .login-side { display: block; min-height: calc(100dvh - 145px); padding: 30px 24px 40px; }
  .login-inner { max-width: 430px; margin: 0 auto; }
  .mobile-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 35px; font-size: 14px; font-weight: 600; }
  .mobile-brand img { width: 44px; height: 44px; }
  .section-label { margin-bottom: 13px; }
  h1 { font-size: 28px; }
  .intro { margin-bottom: 28px; }
}

@media (max-width: 400px) {
  .editorial-scene, .scene-content { min-height: 116px; height: 116px; }
  .login-side { min-height: calc(100dvh - 116px); padding: 24px 18px 32px; }
  .mobile-brand { margin-bottom: 27px; }
}
