:root {
  --bg: #132d3d;
  --surface: #112736;
  --border: #355066;
  --text-main: #e8f2fa;
  --text-muted: #9eb1c2;
  --link: #ffffff;
  --primary: #0a84ff;
  --primary-border: #2a98ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  background: radial-gradient(circle at 50% -20%, #19384b 0%, var(--bg) 45%, #102637 100%);
  color: var(--text-main);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

.screen {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 12px 10px 28px;
  display: flex;
  flex-direction: column;
}

.language {
  text-align: center;
  margin: 6px 0 0;
  font-size: 17px;
  color: #becdd9;
}

.login-area {
  margin-top: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.instagram-logo {
  width: 74px;
  height: 74px;
  margin-bottom: 140px;
}

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

.login-form input {
  width: 100%;
  height: 58px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: rgba(16, 39, 56, 0.55);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  padding: 0 16px;
}

.login-form input::placeholder {
  color: var(--text-muted);
}

.login-form input:focus {
  border-color: #4d7391;
}

.login-form button {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 29px;
  margin-top: 2px;
  background: var(--primary);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.login-form button:disabled {
  cursor: wait;
  opacity: 0.8;
}

.form-status {
  min-height: 20px;
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  color: #c2d5e5;
}

.form-status.success {
  color: #8ce0ad;
}

.form-status.error {
  color: #ff9f9f;
}

.forgot-link {
  margin-top: 21px;
  font-size: 15px;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}

.footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.create-account {
  width: 100%;
  height: 58px;
  border-radius: 29px;
  border: 2px solid var(--primary-border);
  background: transparent;
  color: var(--primary);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.meta-logo {
  width: 72px;
  height: 15px;
  opacity: 0.95;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 431px) {
  .screen {
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
  }
}

@media (max-width: 390px) {
  .language {
    font-size: 17px;
  }

  .login-area {
    margin-top: 90px;
  }

  .instagram-logo {
    margin-bottom: 96px;
  }

  .login-form input,
  .login-form button,
  .create-account {
    height: 54px;
    font-size: 16px;
  }

  .forgot-link {
    font-size: 15px;
  }
}
