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

html,
body {
  min-height: 100%;
}

body {
  font-family: "Open Sans", "Segoe UI", Arial, Helvetica, sans-serif;
  color: #4d4d4d;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  padding: 24px;
  background: #ccc url("assets/background.jpg") center / cover no-repeat;
}

.login-card {
  position: relative;
  z-index: 1;
  margin: auto;
  width: 420px;
  max-width: 100%;
  padding: 26px 26px 34px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.logo-link {
  display: inline-block;
  line-height: 0;
  margin-left: -6px;
}

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

.lang-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border: 1px solid #dcdcdc;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  margin-top: -8px;
}

.lang-flag {
  width: 21px;
  height: auto;
  display: block;
}

.main {
  text-align: center;
}

.title {
  font-size: 1.5rem;
  font-weight: 400;
  color: #737373;
  line-height: 1.2;
  white-space: nowrap;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #4d4d4d;
  margin-bottom: 22px;
}

.instruction {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: #6a6a6a;
  margin: -10px 0 22px;
}

.instruction .phone {
  font-weight: 700;
  color: #4d4d4d;
  white-space: nowrap;
}

.back-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.8125rem;
  color: #6a6a6a;
  text-decoration: none;
}

.back-link:hover {
  color: #4d4d4d;
  text-decoration: underline;
}

.login-form {
  text-align: left;
}

.field {
  margin-bottom: 12px;
}

.field-row {
  display: flex;
  gap: 12px;
}

.field-row .field {
  flex: 1;
  min-width: 0;
}

.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #4d4d4d;
  margin-bottom: 4px;
}

.field-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #333;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s ease;
}

.field-input:focus {
  border-color: #999;
}

.field-error {
  display: none;
  margin-top: 3px;
  font-size: 0.8125rem;
  color: #c96b6b;
}

.field.is-error .field-label {
  color: #c96b6b;
}

.field.is-error .field-input {
  border-color: #c96b6b;
}

.field.is-error .field-error {
  display: block;
}

.remember {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 14px 0 18px;
  cursor: pointer;
  user-select: none;
}

.remember input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.remember-box {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 1px;
  background: #fff;
  position: relative;
}

.remember input:checked + .remember-box {
  background: #4d4d4d;
  border-color: #4d4d4d;
}

.remember input:checked + .remember-box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.remember-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: #4d4d4d;
}

.submit-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #c4c4c4;
  background: #ececec;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.submit-btn.is-active {
  color: #fff;
  background: #e87722;
}

.submit-btn.is-active:hover {
  background: #d0681a;
}

.submit-btn.is-active:active {
  background: #c05f18;
}

.ping-logo {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  height: 42px;
  width: auto;
  pointer-events: none;
}

@media (max-width: 520px) {
  .page {
    padding: 16px;
  }

  .login-card {
    width: 100%;
    padding: 22px 20px 28px;
  }

  .header {
    margin-bottom: 22px;
  }

  .logo {
    height: 44px;
  }

  .title {
    font-size: 1.5rem;
    white-space: normal;
  }

  .field-input {
    height: 44px;
    font-size: 16px;
  }

  .submit-btn {
    height: 46px;
  }

  .ping-logo {
    right: 12px;
    bottom: 10px;
    height: 30px;
  }
}

@media (max-width: 360px) {
  .logo {
    height: 38px;
  }

  .logo-link {
    margin-left: -4px;
  }

  .title {
    font-size: 1.375rem;
  }
}
