@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #f1f3ff;
  --surface: #fff0f4;
  --surface-soft: #f8fbff;
  --pink: #f47ca4;
  --pink-dark: #db5f8b;
  --pink-soft: #ffc9d8;
  --text: #51484e;
  --muted: #938890;
  --border: #ead9da;
  --success: #66b69b;
  --error: #d76a7c;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgb(255 255 255 / 78%), transparent 32rem),
    linear-gradient(145deg, #eef7fa 0%, var(--background) 52%, #f7effb 100%);
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 64px);
}

.auth-card {
  position: relative;
  width: min(100%, 580px);
  min-height: min(760px, calc(100dvh - 64px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(30px, 6vw, 56px);
  border: 1px solid rgb(244 124 164 / 12%);
  border-radius: 42px;
  background: rgb(255 240 244 / 96%);
  box-shadow: 0 24px 70px rgb(87 75 98 / 16%);
}

.auth-card::before,
.auth-card::after {
  position: absolute;
  z-index: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgb(244 124 164 / 8%);
  content: "";
}

.auth-card::before {
  top: -130px;
  left: -90px;
}

.auth-card::after {
  right: -130px;
  bottom: -130px;
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.language-switcher {
  position: absolute;
  top: 24px;
  right: 28px;
  display: flex;
  gap: 6px;
}

.language-switcher a {
  min-width: 34px;
  padding: 7px 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.language-switcher a[aria-current="page"] {
  color: white;
  background: var(--pink);
}

.brand {
  margin: 8px auto 38px;
  text-align: center;
}

.brand img {
  display: block;
  width: min(100%, 330px);
  height: auto;
  margin: 0 auto;
  mix-blend-mode: multiply;
}

.brand p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 2vw, 17px);
}

.content-block,
.form-heading {
  text-align: center;
}

.content-block h1,
.form-heading h1 {
  margin: 18px 0 12px;
  color: var(--pink);
  font-size: clamp(29px, 5vw, 42px);
  font-weight: 600;
  line-height: 1.15;
}

.content-block p,
.form-heading p {
  max-width: 430px;
  margin: 0 auto;
  color: var(--text);
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.65;
}

.status-icon {
  display: grid;
  width: 82px;
  height: 82px;
  margin: 0 auto;
  place-items: center;
  border: 7px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  color: white;
  background: var(--pink);
  box-shadow: 0 12px 28px rgb(244 124 164 / 28%);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}

.status-icon--success {
  background: var(--success);
  box-shadow: 0 12px 28px rgb(102 182 155 / 26%);
}

.status-icon--error {
  background: var(--error);
  box-shadow: 0 12px 28px rgb(215 106 124 / 24%);
}

.primary-button {
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--pink);
  box-shadow: 0 10px 22px rgb(244 124 164 / 24%);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  background: var(--pink-dark);
  box-shadow: 0 12px 26px rgb(219 95 139 / 28%);
  transform: translateY(-1px);
}

.primary-button:focus-visible,
.text-link:focus-visible,
.language-switcher a:focus-visible,
input:focus-visible {
  outline: 3px solid rgb(244 124 164 / 35%);
  outline-offset: 3px;
}

.password-form {
  margin-top: 30px;
}

.password-form label {
  display: block;
  margin-top: 18px;
}

.password-form label span {
  display: block;
  margin: 0 0 8px 20px;
  color: var(--pink-dark);
  font-size: 14px;
}

.password-form input {
  width: 100%;
  height: 62px;
  padding: 0 22px;
  border: 1.5px solid var(--border);
  border-radius: 31px;
  color: var(--text);
  background: var(--surface-soft);
  font: inherit;
  font-size: 17px;
}

.password-form input:focus {
  border-color: var(--pink);
}

.field-hint {
  margin: 12px 20px 0;
  color: var(--muted);
  font-size: 13px;
}

.form-error {
  margin-top: 22px;
  padding: 13px 16px;
  border: 1px solid rgb(215 106 124 / 26%);
  border-radius: 16px;
  color: #994456;
  background: rgb(255 255 255 / 55%);
  font-size: 14px;
  text-align: center;
}

.card-footer {
  margin-top: auto;
  padding-top: 44px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.card-footer p {
  margin: 0 0 12px;
}

.footer-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.text-link {
  color: var(--pink-dark);
  font-weight: 600;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  body {
    background: var(--background);
  }

  .page-shell {
    display: block;
    padding: 0;
  }

  .auth-card {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 74px 24px max(28px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background: var(--background);
    box-shadow: none;
  }

  .language-switcher {
    top: max(18px, env(safe-area-inset-top));
    right: 18px;
  }

  .brand {
    margin-bottom: 34px;
  }

  .brand img {
    width: min(82vw, 310px);
  }

  .status-icon {
    width: 74px;
    height: 74px;
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

