@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap");
@import url("./layout.css");
@import url("./components.css");

:root {
  --bg: #74639d;
  --bg-soft: #f6f0ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-muted: rgba(255, 255, 255, 0.78);
  --border: rgba(132, 107, 197, 0.16);
  --border-soft: rgba(132, 107, 197, 0.08);
  --shadow: 0 26px 56px rgba(69, 42, 121, 0.18);
  --shadow-soft: 0 20px 38px rgba(81, 54, 138, 0.14);
  --text: #281f41;
  --text-soft: #3b3157;
  --muted: #7f73a3;
  --muted-2: #a293c8;
  --primary: #8b5cf6;
  --primary-2: #c084fc;
  --accent: #ffb347;
  --accent-2: #ffd56a;
  --danger: #ff6b6b;
  --danger-2: #ff8e53;
  --success: #12b981;
  --success-2: #34d399;
  --dark: #5b4a87;
  --dark-2: #403260;
  --nav-bg: rgba(131, 103, 188, 0.84);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-xl: 32px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Sora", sans-serif;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 190, 92, 0.2), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(192, 132, 252, 0.28), transparent 18%),
    radial-gradient(circle at bottom right, rgba(52, 211, 153, 0.16), transparent 20%),
    linear-gradient(180deg, #74639d 0%, #6f6099 100%);
  position: relative;
  animation: pageFade 0.35s ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 360px;
  height: 360px;
  top: -120px;
  right: -140px;
  background: rgba(255, 214, 106, 0.2);
}

body::after {
  width: 280px;
  height: 280px;
  left: -120px;
  bottom: 40px;
  background: rgba(192, 132, 252, 0.18);
}

body,
button,
input,
select,
textarea {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

canvas {
  max-width: 100%;
}

button,
a {
  color: inherit;
  outline: 0 !important;
}

a {
  text-decoration: none;
}

a:hover,
a:active,
a:focus {
  color: inherit;
  text-decoration: none;
}

button:active,
a:active {
  transform: scale(0.98);
}

input,
button,
select,
textarea {
  font: inherit;
}

.text-center {
  text-align: center;
}

/* Login page */
body.auth-page.login-screen {
  min-height: 100vh;
  align-items: flex-start;
  padding: 24px 14px 34px;
  color: #f8e7ba;
  background:
    radial-gradient(circle at 50% 18%, rgba(240, 177, 56, 0.24), transparent 23%),
    radial-gradient(circle at 50% 47%, rgba(255, 213, 106, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72)),
    linear-gradient(180deg, #040404 0%, #0c0702 48%, #030303 100%);
}

body.auth-page.login-screen::before {
  width: 100%;
  height: 52%;
  inset: auto 0 0;
  border-radius: 0;
  filter: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(3, 2, 1, 0.72) 42%, #030303 100%),
    radial-gradient(ellipse at bottom left, rgba(190, 119, 24, 0.16), transparent 35%),
    radial-gradient(ellipse at bottom right, rgba(190, 119, 24, 0.12), transparent 35%);
}

body.auth-page.login-screen::after {
  width: min(86vw, 520px);
  height: min(86vw, 520px);
  top: 62px;
  left: 50%;
  bottom: auto;
  transform: translateX(-50%);
  border: 2px solid rgba(245, 186, 71, 0.62);
  border-radius: 50%;
  filter: drop-shadow(0 0 22px rgba(240, 177, 56, 0.3));
  background: transparent;
}

.login-app {
  width: min(100%, 560px);
  padding: 0;
  z-index: 2;
}

.login-brand {
  display: flex;
  justify-content: center;
  padding-top: 6px;
  margin-bottom: -8px;
  position: relative;
  z-index: 3;
}

.login-brand img {
  width: min(76vw, 420px);
  border-radius: 28px;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.72));
}

.auth-page .login-card {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 34px 26px 30px;
  overflow: visible;
  color: #f8e7ba;
  text-align: center;
  border-radius: 8px 8px 28px 28px;
  background:
    linear-gradient(180deg, rgba(22, 16, 9, 0.95), rgba(5, 5, 4, 0.96)),
    radial-gradient(circle at 50% 0%, rgba(246, 193, 80, 0.14), transparent 36%);
  border: 1px solid rgba(237, 173, 53, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 132, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.72),
    0 0 38px rgba(213, 143, 29, 0.16);
  backdrop-filter: blur(12px);
}

.auth-page .login-card::before {
  inset: -12px 26px auto;
  width: auto;
  height: 18px;
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(241, 185, 65, 0.95) 45% 55%, transparent 56%),
    linear-gradient(90deg, transparent, rgba(241, 185, 65, 0.95) 12%, rgba(241, 185, 65, 0.95) 88%, transparent);
  clip-path: polygon(0 40%, 47% 40%, 50% 100%, 53% 40%, 100% 40%, 100% 54%, 54% 54%, 50% 18%, 46% 54%, 0 54%);
}

.login-card-corner {
  position: absolute;
  bottom: -1px;
  width: 44px;
  height: 44px;
  border-bottom: 2px solid #e4a83f;
  pointer-events: none;
}

.login-card-corner-left {
  left: -1px;
  border-left: 2px solid #e4a83f;
  border-radius: 0 0 0 26px;
}

.login-card-corner-right {
  right: -1px;
  border-right: 2px solid #e4a83f;
  border-radius: 0 0 26px 0;
}

.auth-page .title {
  margin-bottom: 8px;
  color: #ffd778;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(239, 177, 61, 0.32);
}

.auth-page .subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  color: rgba(248, 231, 186, 0.8);
  font-size: 14px;
  line-height: 1.5;
}

.auth-page .subtitle::before,
.auth-page .subtitle::after,
.auth-divider::before,
.auth-divider::after {
  content: "";
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 168, 59, 0.76));
}

.auth-page .subtitle::after,
.auth-divider::after {
  transform: rotate(180deg);
}

.auth-page .alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  color: #ffd778;
  font-size: 13px;
  border: 1px solid rgba(255, 93, 93, 0.34);
  border-radius: 10px;
  background: rgba(116, 27, 27, 0.28);
}

.auth-page .alert:empty {
  display: none;
}

.auth-page .select-wrap,
.auth-page .input-group {
  min-height: 58px;
  margin-bottom: 14px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 7px;
  border: 1px solid rgba(228, 168, 63, 0.88);
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.94), rgba(13, 13, 12, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 222, 128, 0.11),
    0 0 0 1px rgba(0, 0, 0, 0.42);
}

.auth-page .select-wrap i,
.auth-page .input-group i {
  width: 22px;
  margin: 0;
  color: #e7ad45;
  font-size: 18px;
  text-align: center;
}

.auth-page .input-group input,
.auth-page .select-wrap select {
  height: 56px;
  padding: 0;
  margin: 0;
  flex: 1;
  color: #fff3d1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
}

.auth-page .select-wrap select {
  width: 100%;
  appearance: none;
  cursor: pointer;
}

.auth-page .select-wrap select option {
  color: #f8e7ba;
  background: #090805;
}

.auth-page .select-wrap select option:checked {
  color: #171006;
  background: #e7ad45;
}

.auth-page .select-wrap {
  position: relative;
}

.auth-page .select-wrap::after {
  content: "\f107";
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: #e7ad45;
  font: var(--fa-font-solid);
  pointer-events: none;
}

.auth-page .input-group input::placeholder {
  color: rgba(248, 231, 186, 0.6);
}

.auth-page .btn {
  min-height: 58px;
  margin-top: 10px;
  padding: 15px 18px;
  color: #171006;
  border-radius: 7px;
  border: 1px solid #ffe08a;
  background:
    linear-gradient(180deg, rgba(255, 238, 148, 0.92), rgba(217, 144, 27, 0.98)),
    linear-gradient(135deg, #f8d46e, #b96b12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -3px 0 rgba(111, 61, 8, 0.42),
    0 16px 28px rgba(190, 116, 20, 0.22);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-page .btn:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -3px 0 rgba(111, 61, 8, 0.42),
    0 18px 36px rgba(224, 154, 42, 0.28);
}

.auth-page .btn.btn-loading::after {
  border-color: rgba(30, 18, 4, 0.88);
  border-top-color: transparent;
}

.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px 0 6px;
  color: #f5c764;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.auth-page .signup {
  margin-top: 18px;
  color: rgba(248, 231, 186, 0.78);
  font-size: 14px;
}

.auth-page .signup a,
.auth-page .login-link a {
  color: #ffd15f;
  font-weight: 800;
}

.auth-page .trust,
.auth-page .login-link {
  margin-top: 16px;
  color: rgba(248, 231, 186, 0.78);
  font-size: 14px;
}

.auth-page .trust {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  color: rgba(255, 215, 120, 0.84);
}

.auth-page .trust i {
  color: #e7ad45;
}

.auth-page .signup-card .btn {
  font-size: 18px;
}

@media (min-width: 700px) {
  body.auth-page.login-screen {
    padding-top: 30px;
  }

  .login-brand img {
    width: min(64vw, 500px);
  }
}

@media (max-width: 480px) {
  body.auth-page.login-screen {
    padding: 16px 10px 28px;
  }

  .login-brand {
    margin-bottom: -4px;
  }

  .login-brand img {
    width: min(88vw, 360px);
    border-radius: 22px;
  }

  .auth-page .login-card {
    width: calc(100% - 4px);
    padding: 28px 18px 26px;
  }

  .auth-page .title {
    font-size: 21px;
  }

  .auth-page .subtitle {
    gap: 8px;
    font-size: 13px;
  }

  .auth-page .subtitle::before,
  .auth-page .subtitle::after,
  .auth-divider::before,
  .auth-divider::after {
    width: 34px;
  }

  .auth-page .select-wrap,
  .auth-page .input-group {
    min-height: 54px;
    padding: 0 14px;
  }

  .auth-page .input-group input,
  .auth-page .select-wrap select {
    height: 52px;
    font-size: 14px;
  }
}

@keyframes spin {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.25;
  }
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
