@font-face {
  font-family: "Instagram Sans Regular";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://static.cdninstagram.com/rsrc.php/y9/r/1GOXakOP6QP.woff2")
    format("woff2");
}

@font-face {
  font-family: "Optimistic";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 80% 100%;
  font-display: swap;
  src: url("https://static.cdninstagram.com/rsrc.php/yQ/r/-pkMfchyeAZ.woff2")
    format("woff2-variations");
}

:root {
  --font-display: "Instagram Sans Regular", sans-serif;
  --font-ui: "Optimistic", system-ui, sans-serif;
  --color-text: #111112;
  --color-muted: #737373;
  --color-label: #666a72;
  --color-border: #d0d3d6;
  --color-divider: #dfe2e5;
  --color-border-dark: #666a72;
  --color-primary: #0064e0;
  --color-facebook: #f2f4f7;
  --color-white: #ffffff;
  --accent-gradient: linear-gradient(to right, #fb724b, #ff0069, #d300c5);
}

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

html {
  color: var(--color-text);
  background: var(--color-white);
}

body,
input,
button,
select,
textarea {
  font-family: var(--font-ui);
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--color-text);
  color: var(--color-white);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.login-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(552px, calc(50% + 2px), 652px);
  min-height: calc(100dvh - 69px);
}

.brand-header {
  position: absolute;
  top: 52px;
  left: 59.4px;
  z-index: 1;
}

.brand-header a {
  display: block;
  line-height: 0;
}

.brand-logo {
  width: 76.8px;
  height: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-title {
  position: absolute;
  top: 144.2px;
  left: min(calc(10% + 36px), calc(50% - 180px));
  width: max(calc(80% - 32px), 400px);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, calc(2.8vw - 0.02625rem), 2.66175rem);
  font-weight: 400;
  line-height: 4.05rem;
}

.hero-title__accent {
  display: inline-block;
  background: var(--accent-gradient);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-image {
  position: absolute;
  top: 263.8px;
  left: 50%;
  width: calc(100% - 127.8px);
  min-width: 500px;
  height: calc(100% - 301px);
  object-fit: contain;
  transform: translateX(-50%);
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-left: 3px solid var(--color-divider);
}

.login-content {
  width: calc(100% - 104.4px);
  margin-right: 52px;
  transform: translateY(4.55px);
}

.login-title {
  margin-bottom: 24px;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 60px;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-white);
  cursor: default;
  overflow: hidden;
  transition: border-color 120ms ease;
}

.form-field:hover,
.form-field:focus-within {
  border-color: var(--color-border-dark);
}

.form-input {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 38px;
  margin: 0 -2px;
  padding: 1px 2px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2667;
  text-overflow: ellipsis;
}

.form-input:focus,
.form-input:not(:placeholder-shown) {
  padding: 18px 2px 1px;
}

.form-label {
  position: absolute;
  top: 18px;
  left: 16px;
  right: 16px;
  min-width: 0;
  overflow: hidden;
  color: var(--color-label);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2667;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform-origin: left top;
  transition:
    transform 120ms ease,
    font-size 120ms ease;
}

.form-field--password .form-label {
  right: 0;
  overflow: visible;
  text-overflow: clip;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  font-size: 15px;
  font-weight: 400;
  line-height: 17px;
  transform: scale(0.866667) translateY(-13px);
}

.password-eye {
  display: flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 16px;
  color: var(--color-text);
  pointer-events: none;
}

.password-eye svg {
  display: block;
  width: 24px;
  height: 24px;
}

.form-input:placeholder-shown ~ .password-eye {
  display: none;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 500;
  line-height: 19px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition:
    filter 120ms ease,
    opacity 120ms ease,
    transform 120ms ease;
}

.button-label {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateY(-0.5px);
}

.button:hover {
  filter: brightness(0.96);
}

.button:active {
  transform: scale(0.99);
}

.button:focus-visible,
.footer-links a:focus-visible,
.brand-header a:focus-visible {
  outline: 2px solid #1877f2;
  outline-offset: 2px;
}

.button--primary,
.button--text,
.button--create {
  margin-top: 12px;
}

.button--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.login-form:invalid .button--primary {
  opacity: 0.4;
  cursor: not-allowed;
}

.button--text {
  background: var(--color-white);
  color: var(--color-text);
}

.button--facebook {
  gap: 8px;
  margin-top: 52px;
  padding-right: 20px;
  background: var(--color-facebook);
  color: var(--color-text);
}

.facebook-icon {
  flex: 0 0 16px;
  width: 13.5px;
  height: 13.5px;
  object-fit: contain;
}

.button--facebook .button-label {
  flex: 0 1 auto;
}

.button--create {
  border: 1px solid var(--color-primary);
  background: var(--color-white);
  color: var(--color-primary);
}

.meta-logo {
  display: block;
  width: 60px;
  height: auto;
  margin: 28px auto 0;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 20px 16px 61px;
  border-top: 1px solid var(--color-divider);
  color: var(--color-muted);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  overflow-x: hidden;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  min-width: 0;
  transform: translateY(0.4px);
}

.footer-links a {
  flex-shrink: 0;
  margin: 0 8px 5px;
  text-decoration: none;
  white-space: nowrap;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  width: 100%;
  transform: translateY(0.4px);
}

.language-selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.language-chevron {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

@media (max-width: 1024px) {
  .login-page {
    display: flex;
    flex-direction: column;
    min-height: max(724px, calc(100dvh - 80px));
  }

  .brand-header {
    position: static;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 132px;
    padding-top: 38px;
    border-bottom: 1px solid var(--color-divider);
  }

  .brand-logo {
    transform: translateX(16px);
  }

  .hero {
    display: none;
  }

  .login-panel {
    flex: 1;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-left: 0;
  }

  .login-content {
    width: min(546px, calc(100% - 103.8px));
    margin-right: 0;
    padding-top: 11px;
    transform: translateY(-0.5px);
  }
}

@media (max-width: 768px) {
  .form-input,
  .form-label {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding-bottom: 41px;
  }

  .footer-meta {
    flex-wrap: wrap;
  }
}

@media (max-width: 280px) {
  .login-panel {
    overflow: hidden;
  }

  .login-title {
    white-space: nowrap;
  }
}
