/* ==========================================
   FULL RED | Auth Pages
   ========================================== */

:root {
  --red: #e63946;
  --red-dark: #b3121e;
  --red-light: #ff6b76;
  --bg: #0d0103;
  --surface: #1a0508;
  --border: #3a141a;
  --text: #f5e9ea;
  --text-dim: #b89a9e;
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font: 'Poppins', system-ui, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ---------- Animated Background ---------- */
.auth-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(230, 57, 70, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(180, 20, 30, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(230, 57, 70, 0.08) 0%, transparent 50%),
    var(--bg);
  z-index: 0;
}

.auth-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: url('../img/logo.png') center/contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.auth-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--red);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 0.6; transform: scale(1); }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-100vh) scale(0); }
}

/* ---------- Container ---------- */
.auth-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 24px;
}

/* ---------- Card ---------- */
.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(26, 5, 8, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: cardIn 0.6s ease-out;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card__glow {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  border-radius: 2px;
}

/* ---------- Header ---------- */
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.3);
}

.auth-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.auth-title__accent {
  background: linear-gradient(135deg, var(--red), var(--red-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-subtitle {
  color: var(--text-dim);
  font-size: 14px;
}

/* ---------- Google Button ---------- */
.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.auth-google:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

/* ---------- Discord Button ---------- */
.auth-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  background: #5865F2;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.auth-discord:hover {
  transform: translateY(-2px);
  background: #4752c4;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
}

.auth-discord svg {
  fill: #fff;
}

/* ---------- Divider ---------- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-dim);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- Form ---------- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
}

.auth-field input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.auth-field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

/* ---------- Error ---------- */
.auth-error {
  display: none;
  padding: 10px 14px;
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: 10px;
  color: var(--red-light);
  font-size: 13px;
  text-align: center;
}

/* ---------- Submit ---------- */
.auth-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
}

/* ---------- Switch ---------- */
.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-dim);
}

.auth-switch a {
  color: var(--red-light);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.auth-switch a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .auth-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .auth-title {
    font-size: 24px;
  }
}
