body {
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family:
    system-ui,
    -apple-system,
    'system-ui',
    SFProText-Regular,
    Roboto,
    sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #fff;
  background-color: #000;
}

main {
  display: flex;
  flex-direction: column;
  padding: 0 50px 120px 50px;
  box-sizing: border-box;
  min-width: 300px;
  max-width: 520px;
  background-color: #000;
  position: relative;
  opacity: 0;
}

body.ready main {
  opacity: 1;
}

body:not(.mobile, .ipad-pro) main {
  background-image: url('logo.png');
  background-repeat: no-repeat;
  background-position: 50% 200px;
  border: solid 1px rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  flex-basis: 770px;
  min-height: 770px;
  justify-content: flex-end;
}

body.ios main,
body.android main,
body.mobile main,
body.ipad-pro main {
  background-image: url('logo-mobile.png');
  background-repeat: no-repeat;
  background-position: 50% 158px;
  background-size: 90px 90px;
  min-height: 100vh;
  padding-top: 313px;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

article {
  height: 315px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

nav {
  display: flex;
  gap: 40px;
  justify-content: center;
  max-width: 200px;
  margin: auto;
  margin-top: 42px;
  height: 40px;
}

h1 {
  font-size: 17px;
  font-weight: normal;
  margin: 0 0 25px 0;
}

nav a {
  display: inline-block;
}

nav a img {
  height: 40px;
}

p {
  line-height: 22px;
}

.login-btn {
  width: 401px;
  height: 48px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 8px 16px 8px 16px;
  border-radius: 4px;
  gap: 11px;
  color: #fff;
  background-color: #262626;
  text-decoration: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  border: 0;
}

body .if-not-password-reset,
body .if-password-reset,
body .if-safari.if-desktop-safari,
body .if-not-safari-desktop .if-desktop.web-login,
body .if-not-safari-desktop .if-android,
body .if-not-safari-desktop .if-ios,
body .if-desktop,
body .if-not-safari-desktop .if-ipad-pro {
  display: none;
}

body:not(.mobile).desktop .if-desktop {
  display: block;
}

body.safari.desktop .if-desktop.web-login {
  display: none;
}

body:not(.safari) body.desktop .if-not-safari-desktop .if-desktop.web-login {
  display: block;
}

body.password-reset .if-password-reset {
  display: block;
}

body.not-password-reset .if-not-password-reset {
  display: block;
}

body:not(.ipad-pro) .safari.desktop .if-safari.if-desktop-safari {
  display: block;
}

body.not-safari.desktop .if-not-safari-desktop .if-desktop.web-login {
  display: block;
}

body.mobile.ios .if-not-safari-desktop .if-ios {
  display: block;
}

body.mobile.android .if-not-safari-desktop .if-android {
  display: block;
}

body.ipad-pro .if-ipad-pro {
  display: block;
}

body.safari.desktop .if-safari.if-desktop-safari {
  display: block;
}
