:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  color: #162033;
  background: #f3f6f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
}

.brand-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(36px, 5vw, 72px);
  color: #edf7f2;
  background:
    radial-gradient(circle at 18% 12%, rgba(73, 207, 154, 0.22), transparent 34%),
    radial-gradient(circle at 80% 82%, rgba(37, 99, 235, 0.2), transparent 32%),
    linear-gradient(145deg, #0c161f 0%, #142736 52%, #102d2a 100%);
}

.brand-panel::before,
.brand-panel::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(127, 231, 188, 0.14);
  border-radius: 50%;
}

.brand-panel::before {
  width: 460px;
  height: 460px;
  right: -230px;
  top: 15%;
}

.brand-panel::after {
  width: 260px;
  height: 260px;
  right: -80px;
  top: calc(15% + 100px);
}

.brand-lockup,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-lockup {
  font-size: 19px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #10231d;
  background: #64d7a8;
  box-shadow: 0 10px 30px rgba(56, 207, 145, 0.2);
}

.brand-copy {
  max-width: 600px;
  margin: auto 0;
  padding: 80px 0 60px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #23845f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-copy .eyebrow {
  color: #81dcb8;
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.brand-description {
  max-width: 540px;
  margin: 28px 0 0;
  color: #b9c9d3;
  font-size: 17px;
  line-height: 1.9;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(224, 242, 235, 0.14);
  list-style: none;
}

.feature-list li {
  display: grid;
  gap: 8px;
  color: #d6e3e8;
  font-size: 13px;
  line-height: 1.6;
}

.feature-list span {
  color: #61d0a3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 7vw 30px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle at 90% 10%, #dff5eb 0, transparent 34%),
    #f3f6f8;
}

.login-card {
  width: min(100%, 460px);
  padding: clamp(32px, 5vw, 52px);
  border: 1px solid rgba(202, 214, 222, 0.88);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 80px rgba(26, 48, 63, 0.12);
  backdrop-filter: blur(16px);
}

.mobile-brand {
  display: none;
  margin-bottom: 34px;
  color: #132532;
}

.login-card header h2 {
  margin: 0;
  color: #101c26;
  font-size: 34px;
  letter-spacing: -0.03em;
}

.login-card header > p:last-child {
  margin: 12px 0 0;
  color: #6c7c88;
  font-size: 14px;
  line-height: 1.7;
}

form {
  display: grid;
  margin-top: 34px;
}

label {
  margin: 0 0 9px;
  color: #273846;
  font-size: 14px;
  font-weight: 700;
}

.input-wrap {
  position: relative;
  margin-bottom: 22px;
}

input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #ced8df;
  border-radius: 10px;
  outline: 0;
  color: #142431;
  background: #fbfcfd;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
  color: #a1adb6;
}

input:hover {
  border-color: #9fadb7;
}

input:focus {
  border-color: #269268;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(38, 146, 104, 0.12);
}

.password-wrap input {
  padding-right: 66px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  color: #527061;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: #167451;
  background: #eaf7f1;
  outline: 0;
}

.login-message {
  min-height: 21px;
  margin: -7px 0 12px;
  color: #c53939;
  font-size: 13px;
  line-height: 1.6;
}

.submit-button {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: #147a55;
  box-shadow: 0 12px 28px rgba(20, 122, 85, 0.2);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #106a49;
  box-shadow: 0 15px 32px rgba(20, 122, 85, 0.26);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(38, 146, 104, 0.28);
  outline-offset: 3px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button-arrow {
  font-size: 20px;
  transition: transform 160ms ease;
}

.submit-button:hover:not(:disabled) .button-arrow {
  transform: translateX(3px);
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 26px 0 0;
  color: #88959e;
  font-size: 12px;
}

.security-note span {
  color: #43b686;
  font-size: 9px;
}

.form-panel footer {
  margin-top: 28px;
  color: #8b989f;
  font-size: 12px;
}

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

  .brand-panel {
    display: none;
  }

  .form-panel {
    padding: 32px 20px 24px;
  }

  .mobile-brand {
    display: flex;
  }
}

@media (max-width: 520px) {
  .form-panel {
    justify-content: flex-start;
    padding: 18px 14px;
  }

  .login-card {
    margin-top: 18px;
    padding: 28px 22px;
    border-radius: 16px;
  }

  .login-card header h2 {
    font-size: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
