:root {
  font-family: "Segoe UI", "Avenir Next", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #e8f3ff;
  background: linear-gradient(-35deg, #12253d, #18506c, #0d3642, #1a2f4f);
  background-size: 320% 320%;
  animation: bgShift 14s ease-in-out infinite;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.1rem;
}

.auth-card {
  width: min(430px, 100%);
  padding: 1.3rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(8px);
}

.project-card {
  width: min(560px, 100%);
}

h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.93rem;
}

input {
  width: 100%;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-size: 0.98rem;
  color: #f3f9ff;
  background: rgba(0, 0, 0, 0.2);
}

input:focus {
  outline: 2px solid rgba(129, 220, 255, 0.75);
  outline-offset: 1px;
}

button,
.link-btn {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 0.62rem 0.95rem;
  background: rgba(0, 0, 0, 0.24);
  color: #e8f3ff;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease;
}

button:hover,
.link-btn:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.38);
}

.error {
  margin: 0 0 0.9rem;
  color: #ffc2c2;
}

.hint {
  margin: 0.95rem 0 0;
  font-size: 0.82rem;
  color: rgba(234, 245, 255, 0.75);
}

.actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}

@keyframes bgShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-card {
  animation: fadeUp .45s ease-out;
}

@media (max-width: 480px) {
  .auth-card { padding: 1rem; }
  h1 { font-size: 1.4rem; }
}

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