:root {
  --text: #151515;
  --muted: #525c69;
  --green: #1bce7b;
  --green-hover: #19c174;
  --blue: #559be6;
  --border: #c6cdd3;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, Ubuntu, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--muted);
  background: #0b78b5;
}

.page-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  object-fit: cover;
  object-position: center;
}

body::before {
  position: fixed;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0) 19.64%, rgba(5, 5, 5, 0.45));
}

.page {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 100vh;
  padding: 28px 10vw 28px 8vw;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(360px, 24vw);
  min-width: 0;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.brand-title {
  margin: 0 0 10px;
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
}

.brand-subtitle {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.92;
}

.auth-layout {
  display: flex;
  flex-shrink: 0;
  width: 680px;
  max-width: 100%;
  margin-left: auto;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 424px;
  min-height: 462px;
  padding: 44px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.07);
}

h1 {
  margin: 0 0 35px;
  color: var(--text);
  font-size: 24px;
  font-weight: 400;
  line-height: 31px;
  text-align: center;
}

.login-form {
  width: 336px;
  max-width: 100%;
}

.error-message {
  margin: -18px 0 14px;
  color: #e64646;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

.error-message[hidden] {
  display: none;
}

.text-field {
  width: 100%;
  height: 42px;
  margin: 0 0 16px;
  padding: 15px 30px 14px 16px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.16s ease;
}

.text-field::placeholder {
  color: #a8adb4;
  opacity: 1;
}

.text-field:focus {
  border-color: #2067f5;
}

.password-field {
  position: relative;
}

.password-field .text-field {
  display: block;
}

.show-password {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.show-password::before {
  position: absolute;
  top: 16px;
  right: 14px;
  width: 14px;
  height: 10px;
  content: "";
  background: #c7ccd4;
  border-radius: 50%;
}

.show-password.is-active::before {
  background: #8f98a3;
}

.show-password::after {
  position: absolute;
  top: 19px;
  right: 18px;
  width: 6px;
  height: 4px;
  content: "";
  background: #ffffff;
  border-radius: 50%;
}

.continue-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin: 0 0 17px;
  padding: 0 26px;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 48px;
  cursor: pointer;
  background: var(--green);
  border: 0;
  border-radius: 4px;
  transition: background 0.16s ease;
}

.continue-button:hover {
  background: var(--green-hover);
}

.form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 20px;
}

.remember {
  display: flex;
  gap: 4px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}

.remember input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #ffffff;
}

a {
  color: var(--blue);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

a:hover {
  color: #468ee0;
}

.qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 256px;
  min-height: 429px;
  margin-top: 16px;
  margin-left: 0;
  padding: 22px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 0 16px 16px 0;
}

.qr-title {
  width: 189px;
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 500;
  line-height: 21.48px;
}

.qr-instructions {
  width: 189px;
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 19.09px;
}

.qr-code {
  width: 189px;
  height: 189px;
  margin: 0 0 28px;
  padding: 10px;
  background: #ffffff;
  border-radius: 10px;
}

.qr-code img {
  display: block;
  width: 169px;
  height: 169px;
  object-fit: cover;
}

.app-links {
  display: flex;
  gap: 23px;
  align-items: center;
  width: 189px;
  height: 26px;
}

.store-badge {
  height: 26px;
  overflow: hidden;
}

.store-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-badge.ios {
  width: 78px;
}

.store-badge.android {
  width: 88px;
}

.success-card {
  width: min(424px, 100%);
  padding: 44px;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.07);
}

.success-card p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.5;
}

.success-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  background: var(--green);
  border-radius: 4px;
}

.success-link:hover {
  color: #ffffff;
  background: var(--green-hover);
}

@media (max-width: 1600px) {
  .page {
    justify-content: center;
    padding: 28px 24px;
  }

  .brand-panel {
    display: none;
  }

  .auth-layout {
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  .page {
    align-items: center;
    justify-content: center;
    padding: 18px;
  }

  .brand-panel {
    display: none;
  }

  .auth-layout {
    justify-content: center;
    width: 100%;
    margin-left: 0;
  }

  .login-card {
    width: min(424px, 100%);
    min-height: 430px;
    padding: 36px 28px;
  }

  .login-form {
    width: 100%;
  }

  .qr-panel {
    display: none;
  }
}
