* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: #303b48;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* HEADER */
header {
  height: 76px;
  border-bottom: 1px solid #dddddd;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-wrapper {
  width: 1180px;
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 51px;
  line-height: 1;
  font-weight: 700;
  color: #f28c00;
  letter-spacing: -2.2px;
  margin-top: -4px;
}

nav {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 31px;
}

nav a {
  position: relative;
  height: 76px;
  line-height: 76px;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  color: #111;
}

nav a.active {
  font-weight: 700;
}

nav a.active::after {
  content: "";
  position: absolute;
  left: -15px;
  right: -15px;
  bottom: 0;
  height: 3px;
  background: #000;
}

/* MAIN */
main {
  width: 1180px;
  margin: 0 auto;
  padding-top: 54px;
  padding-bottom: 68px;
}

.content-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

/* LEFT FORM */
.login-panel {
  width: 535px;
  margin-left: 14px;
  padding-top: 0;
}

.login-panel h1 {
  margin: 0 0 52px;
  font-size: 31px;
  line-height: 1;
  font-weight: 700;
  color: #394655;
  letter-spacing: -0.4px;
}

.field {
  margin-bottom: 23px;
}

label {
  display: block;
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  color: #394655;
}

input {
  display: block;
  width: 100%;
  height: 48px;
  border: 1px solid #d8d8d8;
  border-radius: 7px;
  padding: 0 13px;
  font-size: 16px;
  font-family: inherit;
  color: #111;
  background: #fff;
  outline: none;
}

input:focus {
  border-color: #c7c7c7;
  box-shadow: 0 0 0 3px #e7f0ff;
}

.forgot {
  display: inline-block;
  margin-top: -6px;
  margin-bottom: 44px;
  font-size: 16px;
  line-height: 1;
  color: #006fff;
  text-decoration: none;
}

.login-button {
  width: 100%;
  height: 49px;
  border: 0;
  border-radius: 6px;
  background: #333333;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 52px 0 27px;
  color: #8d949e;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #aeb2b8;
}

.register-text {
  margin: 0 0 17px;
  text-align: center;
  color: #8d949e;
  font-size: 16px;
  line-height: 1;
}

.register-button {
  width: 100%;
  height: 49px;
  border: 2px solid #c6c9ce;
  border-radius: 7px;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 64px;
}

/* ERROR / HONEYPOT */
.error-message {
  color: #d00000;
  margin: 0 0 20px;
  font-size: 16px;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* LOADING */
.loading-box {
  width: 100%;
  min-height: 275px;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  background: #fff;
}

.spinner {
  width: 46px;
  height: 46px;
  border: 4px solid #e1e3e8;
  border-top-color: #333333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 22px;
}

.loading-box p {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #394655;
}

.loading-box span {
  font-size: 15px;
  color: #8d949e;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* STEP 2 BOX */
.step-two-form {
  width: 100%;
}

.app-confirm-box {
  width: 100%;
  min-height: 96px;
  background: #f1f2f7;
  border: 1px solid #e1e3ea;
  border-radius: 22px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #304052;
  margin-bottom: 28px;
}

.app-confirm-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffffff;
  color: #394655;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
}

.app-confirm-box strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  color: #304052;
  margin-bottom: 6px;
}

.app-confirm-box span {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: #4f5d6d;
}

/* RIGHT DOWNLOAD CARD - EXACT LIKE SCREENSHOT */
.download-area {
  width: 585px;
  height: 622px;
  background: #f1f2f7;
  border-radius: 22px;
  padding: 34px 16px 0;
  overflow: hidden;
  flex-shrink: 0;
}

.download-area h2 {
  margin: 0 0 45px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  color: #394655;
  letter-spacing: -0.3px;
}

.download-list {
  margin: 0 0 14px;
  padding: 0;
}

.div-list {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.25;
  color: #263546;
  font-weight: 400;
}

.icon-img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.72;
}

.img-app {
  display: block;
  width: 620px;
  max-width: none;
  height: auto;
  margin-top: 8px;
  margin-left: -18px;
}

/* FOOTER */
footer {
  min-height: 196px;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
}

.footer-wrapper {
  width: 880px;
  display: grid;
  grid-template-columns: 125px 190px 190px 225px;
  column-gap: 45px;
  padding-top: 35px;
  padding-bottom: 28px;
  color: #304052;
}

.footer-column h3 {
  margin: 0 0 15px;
  font-size: 16px;
  font-weight: 700;
  color: #3f3f3f;
}

.footer-column p {
  margin: 0 0 15px;
  font-size: 15px;
  line-height: 1.2;
}

.footer-column a {
  color: #304052;
  text-decoration: none;
  margin-right: 9px;
}

.active-language {
  font-weight: 700;
}

/* INTRO PAGE */
.intro-main {
  width: 1180px;
  min-height: 620px;
  margin: 0 auto;
  padding-top: 64px;
  padding-bottom: 80px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.intro-card {
  width: 760px;
  background: #f1f2f7;
  border: 1px solid #e1e3ea;
  border-radius: 22px;
  padding: 46px 44px 42px;
}

.intro-label {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 15px;
  font-weight: 700;
  color: #8d949e;
}

.intro-card h1 {
  margin: 0 0 24px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  color: #394655;
}

.intro-card p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.55;
  color: #304052;
}

.intro-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.intro-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 49px;
  padding: 0 28px;
  border-radius: 6px;
  background: #333333;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.intro-secondary {
  font-size: 15px;
  color: #8d949e;
}

/* TABLET */
@media (max-width: 1240px) {
  .nav-wrapper,
  main,
  .intro-main {
    width: calc(100% - 70px);
  }

  .login-panel {
    width: 48%;
    margin-left: 0;
  }

  .download-area {
    width: 52%;
  }

  .img-app {
    width: calc(100% + 40px);
    max-width: none;
    margin-left: -20px;
  }
}

/* SMALL DESKTOP / TABLET */
@media (max-width: 980px) {
  .content-layout {
    flex-direction: column;
  }

  .login-panel,
  .download-area {
    width: 100%;
  }

  .download-area {
    height: auto;
    min-height: 0;
  }

  .img-app {
    width: calc(100% + 40px);
    max-width: none;
    margin-left: -20px;
  }
}

/* MOBILE */
@media (max-width: 760px) {
  .img-app {
  width: 100%;
  max-width: 585px;
  margin-left: 0;
}

  .nav-wrapper {
    width: calc(100% - 32px);
    height: auto;
    align-items: flex-start;
    gap: 18px;
  }

  .logo {
    font-size: 42px;
  }

  nav {
    height: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
  }

  nav a {
    height: 30px;
    line-height: 30px;
    font-size: 15px;
  }

  nav a.active::after {
    left: 0;
    right: 0;
  }

  main {
    width: calc(100% - 32px);
    padding-top: 38px;
    padding-bottom: 54px;
  }

  .login-panel h1 {
    font-size: 29px;
  }

  .app-confirm-box {
    border-radius: 16px;
    padding: 18px 16px;
    min-height: 88px;
    gap: 14px;
  }

  .app-confirm-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 19px;
  }

  .app-confirm-box strong {
    font-size: 15px;
  }

  .app-confirm-box span {
    font-size: 13px;
  }

  .download-area {
    padding: 28px 15px 0;
    border-radius: 18px;
  }

  .download-area h2 {
    font-size: 24px;
    margin-bottom: 34px;
  }

  .div-list {
    font-size: 15px;
    gap: 13px;
  }

  .img-app {
    width: 100%;
    max-width: 585px;
    margin-left: 0;
  }

  .footer-wrapper {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .intro-main {
    width: calc(100% - 32px);
    min-height: auto;
    padding-top: 38px;
    padding-bottom: 54px;
  }

  .intro-card {
    width: 100%;
    padding: 34px 24px 30px;
    border-radius: 18px;
  }

  .intro-card h1 {
    font-size: 29px;
  }

  .intro-card p {
    font-size: 16px;
  }

  .intro-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .intro-button {
    width: 100%;
  }

  .intro-secondary {
    text-align: center;
  }
}