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

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

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

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

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

:root,
html {
  color-scheme: dark;
}

body.login-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #000;
  color: #f5f5f5;
}

.aura-background-component {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

.unicorn-background-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
}

.login-card {
  width: 100%;
  padding: 42px 38px 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.login-brand-logo {
  display: block;
  width: min(100%, 286px);
  height: auto;
  max-height: 48px;
  margin: 0 0 10px;
  object-fit: contain;
}

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

.login-kicker {
  margin-bottom: 8px;
  color: #d4d4d8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-logo {
  margin-bottom: 6px;
  color: #f5f5f5;
  font-size: 27px;
  font-weight: 750;
  line-height: 1.08;
}

.login-subtitle {
  margin-bottom: 32px;
  color: #c4c4c7;
  font-size: 14px;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: #f4f4f5;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  outline: none;
  background: #000;
  color: #f5f5f5;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input::placeholder {
  color: #8d8d92;
}

input:focus {
  border-color: #fafafa;
  background: #050505;
  box-shadow: 0 0 0 3px rgba(250, 250, 250, 0.12);
}

button {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  border: none;
  border-radius: 7px;
  background: #e5e5e5;
  color: #050505;
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  background: #fafafa;
}

button:active {
  transform: translateY(1px);
}

button:focus-visible {
  outline: 2px solid #fafafa;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(250, 250, 250, 0.14);
}

button:disabled {
  background: #8a8a8a;
  cursor: default;
  transform: none;
}

.error-msg {
  min-height: 18px;
  margin-top: 14px;
  color: #b42318;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 480px) {
  body.login-page {
    align-items: end;
    padding-top: 52px;
  }

  .login-shell {
    width: 100%;
  }

  .login-card {
    padding: 34px 24px 28px;
  }

  .login-brand-logo {
    width: min(100%, 260px);
    max-height: 44px;
    margin-bottom: 10px;
  }

  .login-logo {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .unicorn-background-scene {
    display: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
