:root {
  --font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --text: #0c0a09;
  --muted: #78716c;
  --on-primary: #ffffff;
  --primary: #16324f;
  --bg: #ffffff;
  --border: #e7e5e4;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --content-max: 1280px;
  --form-max: 360px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 20px;
  color: #020817;
  background: #fafbfc;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: var(--bg);
}

.grid {
  width: 100%;
  max-width: var(--content-max);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  align-items: center;
}

.left {
  display: flex;
  justify-content: center;
  padding-bottom: 109px;
  min-width: 0;
}

.panel {
  width: 100%;
  max-width: var(--form-max);
}

.logo {
  margin-bottom: 32px;
}

.logo img {
  display: block;
  width: 168px;
  height: auto;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  color: var(--text);
}

.subtitle {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field label {
  display: block;
  height: 20px;
  margin-bottom: 17px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text);
}

.field input {
  display: block;
  width: 100%;
  height: 36px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  outline: none;
}

.field input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field input:focus-visible {
  box-shadow: 0 0 0 1px var(--primary);
}

.password {
  position: relative;
}

.password input {
  padding-right: 40px;
}

.eye {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
}

.eye svg {
  display: block;
}

.eye svg[hidden] {
  display: none;
}

.submit {
  display: block;
  width: 100%;
  height: 36px;
  margin-top: 24px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.submit:hover {
  background: var(--primary-hover, #0f2438);
}

.message {
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
}

.divider {
  margin: 24px 0 0;
  height: 1px;
  border: 0;
  background: var(--border);
}

.forgot-wrap {
  margin-top: 24px;
  text-align: center;
}

.forgot {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  line-height: 20px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.right {
  min-width: 0;
}

.banner {
  display: block;
  width: 100%;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .page {
    display: block;
    padding: 24px 16px;
  }

  .grid {
    display: block;
  }

  .left {
    padding-bottom: 0;
  }

  .panel {
    max-width: none;
  }

  .right {
    display: none;
  }
}
