/* ========================================
   LOGIN PAGE — Lityx AI
   Centered Minimalist Design
   Monochromatic Deep Space Palette
   ======================================== */

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

:root {
  /* Backgrounds */
  --surface-0: #020202;
  --surface-1: #0a0a0c;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #c4c4c4;
  --text-muted: #6b6b6b;

  /* Gradiente Metálico (botão) */
  --gradient-metallic: linear-gradient(135deg, #ffffff 0%, #a3a3a3 50%, #737373 100%);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);

  /* Radius */
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Danger */
  --danger: #ef4444;
}

/* Light mode support */
[data-theme="light"] {
  --surface-0: #f8f8f8;
  --surface-1: #ffffff;
  --text-primary: #0a0a0a;
  --text-secondary: #404040;
  --text-muted: #808080;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --gradient-metallic: linear-gradient(135deg, #303030 0%, #505050 50%, #707070 100%);
}

body {
  font-family: "Plus Jakarta Sans", "Google Sans", system-ui, -apple-system, sans-serif;
  background: var(--surface-0);
  color: var(--text-secondary);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========================================
   ATMOSPHERIC BACKGROUND
   ======================================== */

.login-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    rgba(30, 30, 35, 0.6) 0%,
    var(--surface-0) 70%
  );
}

.bg-curves {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.bg-curves svg {
  width: 100%;
  height: 100%;
}

.bg-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 40%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 70%
  );
}

/* ========================================
   CENTERED CONTAINER
   ======================================== */

.login-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem;
}

/* ========================================
   LOGIN CARD
   ======================================== */

.login-card {
  width: 100%;
  max-width: 380px;
  background: rgba(16, 16, 18, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 3rem 2.5rem;
  text-align: center;

  /* Card entrance animation */
  animation: cardFadeIn 0.6s ease forwards;
}

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

/* ========================================
   LOGO
   ======================================== */

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.login-logo svg {
  height: 48px;
  width: auto;
  fill: var(--text-primary);
}

/* ========================================
   SUBTITLE
   ======================================== */

.login-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 2rem;
}

/* ========================================
   ERROR MESSAGE
   ======================================== */

.error-message {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  padding: 0.875rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.error-message svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ========================================
   GOOGLE BUTTON
   ======================================== */

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--gradient-metallic);
  color: #0a0a0a;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.google-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #c0c0c0 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}


.google-btn:hover::before {
  opacity: 1;
}

.google-btn:active {
  transform: translateY(0);
}

.google-btn span,
.google-btn svg {
  position: relative;
  z-index: 1;
}

.google-icon {
  flex-shrink: 0;
}

/* ========================================
   FOOTER TEXT
   ======================================== */

.login-footer-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  .login-card {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .google-btn {
    transition: none;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (min-width: 768px) {
  .login-card {
    padding: 3.5rem 3rem;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 1.5rem;
  }

  .login-card {
    padding: 2.5rem 1.75rem;
  }

  .login-logo {
    margin-bottom: 1.25rem;
  }

  .login-logo svg {
    height: 40px;
  }

  .login-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
  }

  .google-btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }

  .login-footer-text {
    font-size: 0.65rem;
  }
}

@media (max-width: 360px) {
  .login-card {
    padding: 2rem 1.5rem;
  }
}

/* ========================================
   GLOBAL CURSOR POINTER OVERRIDE
   ======================================== */

body.no-cursor-pointer *,
body.no-cursor-pointer *:hover,
body.no-cursor-pointer button,
body.no-cursor-pointer a,
body.no-cursor-pointer label,
body.no-cursor-pointer input,
body.no-cursor-pointer select,
body.no-cursor-pointer textarea {
  cursor: default !important;
}
