:root {
  --bg: #f5f6f4;
  --panel: rgba(255, 255, 255, 0.97);

  --deep: #0b5660;
  --teal: #0f8d90;

  --text: #123f46;
  --muted: #6c8185;
  --line: #d7e1e1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  color: var(--text);
}

body {
  height: 100dvh;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.login-page {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* =====================
   Hero
===================== */

.login-hero {
  flex: 0 0 62%;
  min-height: 0;
  overflow: hidden;
  background: #f5f5f3;
}


.login-hero-image {
  width: 108%;
  height: 108%;

  display: block;

  object-fit: contain;
  object-position: center center;

  transform: translate(0%, 2%);
}

/* =====================
   Panel
===================== */

.login-panel {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;

  background: #F9F9F7;

  border-radius:
    18px
    18px
    0
    0;

  box-shadow:
    0 -1px 8px
    rgba(0, 40, 45, 0.03);

  overflow: hidden;
}

.login-panel-inner {
  max-width: 680px;
  height: 100%;
  margin: 0 auto;

  padding:
    20px
    40px
    calc(
      18px +
      env(safe-area-inset-bottom, 0px)
    );

  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =====================
   Text
===================== */

.login-title {
  margin: 0;

  font-size:
    clamp(26px, 5vw, 32px);

  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--deep);
  font-weight: 700;
}

.login-subtitle {
  margin:
    8px
    0
    24px;

  font-size:
    clamp(14px, 2.5vw, 17px);

  line-height: 1.6;
  color: var(--text);
}

/* =====================
   Google
===================== */

.google-login-link,
.apple-login-link {
  display: block;
  width: 72%;
  max-width: 400px;

  margin-left: auto;
  margin-right: auto;

  overflow: visible;
}

.google-login-image,
.apple-login-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.apple-login-link {
  margin-top: 10px;
}

/* =====================
   Divider
===================== */

.login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0;
}

.login-divider span {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-divider p {
  margin: 0;
  font-size: clamp(13px, 2vw, 16px);
  color: var(--text);
  white-space: nowrap;
}

/* =====================
   Email button
===================== */

.email-register-button {
  width: 76%;
  max-width: 420px;

  margin-left: auto;
  margin-right: auto;

  min-height: 50px;

  border: 0;
  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      #149496,
      #087579
    );

  color: #ffffff;

  font-size: 16px;
  font-weight: 700;
}

.email-register-button:active {
  transform: scale(0.985);
}

/* =====================
   Login text
===================== */

.login-switch-text {
  margin: 12px 0 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.login-switch-button {
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* =====================
   Footer
===================== */

.login-footer {
  margin-top: 22px;
  padding-top: 0px;

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 14px;
  font-size: 13px;
}

.login-footer a {
  color: var(--teal);
  text-decoration: none;
}

.login-footer span {
  color: #9bb0b2;
}

/* =====================
   Larger screens
===================== */

@media (min-width: 768px) {
  body {
    display: flex;
    justify-content: center;
    align-items: stretch;
  }

  .login-page {
    width: 100%;
    max-width: 820px;
  }

  .login-panel-inner {
    padding:
      28px
      40px
      calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

/* =====================
   Small height devices
===================== */

@media (max-height: 760px) {
  

  .login-panel-inner {
    padding:
      16px
      20px
      calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .login-subtitle {
    margin-bottom: 14px;
  }

  .login-divider {
    margin: 12px 0;
  }

  .login-switch-text {
    margin-top: 14px;
  }

  .login-footer {
    padding-top: 12px;
  }
}

.apple-login-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.apple-login-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}