/* frontend/auth-styles.css */

:root {
  --auth-bg-color: #050505;
  --auth-card-bg: rgba(15, 15, 15, 0.95);
  --auth-border-color: rgba(255, 255, 255, 0.08);
  --auth-red-primary: #e50914;
  --auth-red-hover: #ff1a24;
  --auth-red-glass: rgba(229, 9, 20, 0.08);
  --auth-text-main: #e2e8f0;
  --auth-text-subtle: #94a3b8;
  --auth-accent-glow: rgba(229, 9, 20, 0.04);
}

.auth-wrapper {
  background-color: var(--auth-bg-color);
  color: var(--auth-text-main);
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, var(--auth-accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.auth-wrapper::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, var(--auth-accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.auth-card {
  background: var(--auth-card-bg);
  border: 1px solid var(--auth-border-color);
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 450px;
  backdrop-filter: blur(15px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 10;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--auth-red-primary), transparent);
}

.auth-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 500;
  text-align: center;
  color: var(--auth-red-primary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: var(--auth-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--auth-border-color);
  color: var(--auth-text-main);
  padding: 0.9rem 1.2rem;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-input:focus {
  border-color: var(--auth-red-primary);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.15);
}

.auth-btn {
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.auth-btn-gold {
  background: var(--auth-red-primary);
  border: 1px solid var(--auth-red-primary);
  color: #ffffff;
}

.auth-btn-gold:hover {
  background: var(--auth-red-hover);
  border-color: var(--auth-red-hover);
  transform: translateY(-1px);
}

.auth-btn-oauth {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--auth-border-color);
  color: var(--auth-text-main);
}

.auth-btn-oauth:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--auth-red-primary);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--auth-text-subtle);
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  margin: 1rem 0;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--auth-border-color);
}

.auth-divider:not(:empty)::before {
  margin-right: .75em;
}

.auth-divider:not(:empty)::after {
  margin-left: .75em;
}

.auth-message {
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  display: none;
  margin-bottom: 1rem;
}

.auth-message-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.auth-message-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.auth-toggle-link {
  color: var(--auth-text-subtle);
  font-size: 0.85rem;
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  transition: color 0.3s ease;
}

.auth-toggle-link:hover {
  color: var(--auth-red-primary);
}
