@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --black-true:#000; 
  --black-900:#0B0B0C; 
  --black-800:#101113;
  --outline:rgba(255,255,255,.06);
  --ink:#DCDCDC; 
  --ink-dim:#A9A9A9; 
  --ink-muted:#8A8A8A;
  --accent:#C5A572; 
  --accent-2:#9B7F4E;
  --accent-glow:rgba(197, 165, 114, 0.2);
  --glass:rgba(16,17,19,.75); 
  --shadow:0 10px 30px rgba(0,0,0,.45);
  --shadow-lg:0 20px 60px rgba(0,0,0,.6);
  --radius:16px;
}

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

html, body {
  background: radial-gradient(1200px 800px at 70% -10%, #111 0%, #0A0A0A 35%, #050505 70%, var(--black-true) 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* Auth Container */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 2rem 4rem; /* Account for fixed navbar */
  position: relative;
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(135deg, rgba(16,17,19,.85), rgba(16,17,19,.75));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 0;
  box-shadow: 
    0 10px 30px rgba(0,0,0,.45),
    0 0 40px rgba(197,165,114,.25),
    inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

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

/* Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--outline);
  background: rgba(255,255,255,.02);
  margin-top: 0;
  margin-bottom: 0;
}

.tab-btn {
  flex: 1;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--ink-dim);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: var(--ink);
  background: rgba(255,255,255,.03);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(197,165,114,.05);
}

/* Form Container */
.auth-form {
  padding: 32px 36px 40px 36px;
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-header h2 {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, #E8D4A8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-header p {
  color: var(--ink-dim);
  font-size: 14px;
}

/* Form Groups */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  font-family: Inter, system-ui, sans-serif;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--outline);
  border-radius: 12px;
  color: var(--ink);
  font-size: 15px;
  font-family: Inter, system-ui, sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-group input::placeholder {
  color: var(--ink-muted);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,.08);
  box-shadow: 
    0 0 0 3px rgba(197,165,114,.15),
    0 4px 12px rgba(0,0,0,.2);
}

.form-group input:hover {
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
}

.forgot-link {
  display: block;
  text-align: right;
  margin-top: 8px;
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
  font-family: Inter, system-ui, sans-serif;
}

.forgot-link:hover {
  color: #E8D4A8;
  text-decoration: underline;
}

/* Checkbox Group */
.checkbox-group {
  margin-bottom: 28px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.checkbox-label a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.checkbox-label a:hover {
  color: #E8D4A8;
  text-decoration: underline;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border: none;
  border-radius: 14px;
  color: #0f0f10;
  font-size: 16px;
  font-weight: 700;
  font-family: Inter, system-ui, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 18px rgba(197,165,114,.35),
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -1px 0 rgba(0,0,0,.1);
  letter-spacing: 0.3px;
  margin-bottom: 24px;
}

.submit-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 28px rgba(197,165,114,.5),
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -1px 0 rgba(0,0,0,.05);
}

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

.submit-btn svg {
  transition: transform 0.3s;
}

.submit-btn:hover svg {
  transform: translateX(4px);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 28px 0;
  color: var(--ink-muted);
  font-size: 13px;
}

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

.divider span {
  padding: 0 16px;
}

/* Social Login */
.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.social-btn {
  padding: 12px 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--outline);
  border-radius: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  font-family: Inter, system-ui, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.social-btn:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

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

.social-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .auth-container {
    padding: 120px 1.5rem 3rem;
  }

  .auth-card {
    max-width: 100%;
    border-radius: 20px;
  }

  .auth-form {
    padding: 32px 24px;
  }

  .form-header h2 {
    font-size: 1.75rem;
  }

  .tab-btn {
    padding: 18px 20px;
    font-size: 15px;
  }

  .social-login {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 100px 1rem 2rem;
  }

  .auth-form {
    padding: 28px 20px;
  }

  .form-header h2 {
    font-size: 1.5rem;
  }

  .tab-btn {
    padding: 16px;
    font-size: 14px;
  }
}

