:root {
  --navy: #17212f;
  --navy-soft: #26364a;
  --gold: #c7a66a;
  --gold-light: #f2d16b;
  --ink: #202936;
  --muted: #687180;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 32px 20px;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(199, 166, 106, 0.25),
      transparent 28rem
    ),
    radial-gradient(
      circle at 88% 88%,
      rgba(38, 54, 74, 0.16),
      transparent 30rem
    ),
    linear-gradient(135deg, #fbfaf7 0%, #f3ede3 100%);
  font-family: Inter, "Segoe UI", sans-serif;
}

.login-box {
  position: relative;
  width: min(100%, 450px);
  padding: 46px 42px 40px;
  overflow: hidden;
  text-align: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(199, 166, 106, 0.35);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(23, 33, 47, 0.14);
  backdrop-filter: blur(16px);
  animation: card-enter 0.6s ease both;
}

.login-box::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 54%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-50%);
}

.coin {
  width: 104px;
  margin: 0 0 18px;
  filter: drop-shadow(0 12px 16px rgba(199, 166, 106, 0.25));
  animation: float 4s ease-in-out infinite;
}

h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

input {
  width: 100%;
  min-height: 54px;
  margin: 0 0 14px;
  padding: 15px 16px;
  color: var(--ink);
  outline: none;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #dce0e4;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  font: inherit;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

input::placeholder {
  color: #929aa5;
}

input:focus {
  background: #ffffff;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(199, 166, 106, 0.14);
}

button {
  width: 100%;
  min-height: 52px;
  margin-top: 5px;
  padding: 14px 20px;
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  box-shadow: 0 12px 24px rgba(23, 33, 47, 0.18);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

button:hover {
  background: linear-gradient(135deg, #26364a, #17212f);
  box-shadow: 0 16px 30px rgba(23, 33, 47, 0.26);
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

#login-btn {
  margin-top: 12px;
  color: var(--navy);
  background: transparent;
  border-color: rgba(199, 166, 106, 0.72);
  box-shadow: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@media (max-width: 520px) {
  body {
    padding: 20px 14px;
  }

  .login-box {
    padding: 36px 24px 28px;
    border-radius: 20px;
  }

  .coin {
    width: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.login-toggle-btn,
.google-btn {
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;

  margin-top: 16px;

  border: 1.5px solid var(--gold);

  border-radius: 18px;

  background: #ffffff;

  color: var(--ink);

  font-size: 1.15rem;

  font-weight: 600;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 14px;

  cursor: pointer;

  box-shadow: 0 10px 24px rgba(23, 33, 47, 0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
#login-btn:hover,
.google-btn:hover {
  color: #5e461d !important;

  background: rgba(199, 166, 106, 0.13) !important;

  border-color: rgba(199, 166, 106, 0.72);

  box-shadow: none !important;

  transform: translateY(-2px);
}

.google-btn img {
  width: 24px;

  height: 24px;

  flex-shrink: 0;
}
.back-home-link {
  display: inline-block;

  margin-top: 22px;

  color: var(--muted);

  text-decoration: none;

  font-weight: 500;

  transition: 0.3s ease;
}

.back-home-link:hover {
  color: var(--gold);
}

.login-footer {
  margin-top: 28px;

  font-size: 0.9rem;

  color: var(--muted);
}
