/* ============================================
   LOGIN PAGE STYLES (from accounts/css/style.css)
   ============================================ */

/* Brand Colors */
:root {
  /* Backgrounds */
  --bg-dark:    oklch(0% 0 0);
  --bg:         oklch(15.91% 0 0);
  --bg-light:   oklch(21.78% 0 0);

  --brand-c1:   oklch(60% 0.24 276);
  --brand-c2:   oklch(83% 0.18 316);
  --brand-gradient: linear-gradient(90deg in oklch, var(--brand-c1) 0%, var(--brand-c2) 100%);
  --brand-gradient-hover: linear-gradient(90deg in oklch, var(--brand-c1) 0%, var(--brand-c2) 100%);

  --gradient: linear-gradient(0deg, var(--bg) 95%, var(--bg-light));
  --gradient-hover: linear-gradient(0deg, var(--bg), var(--bg-light));
  --shadow: 0px 2px 2px oklch(0% 0 0 / 0.07), 0px 4px 4px oklch(0% 0 0 / 0.15);

  /* Border */
  --border:       oklch(42.02% 0 0);
  --highlight:    oklch(68.3% 0 0);
  --border-card:  solid 2px var(--border);

  /* Text */
  --text:         oklch(96.12% 0 0);
  --text-secondary: oklch(88.53% 0 0);
  --text-muted:   oklch(76.68% 0 0);

  /* alert colors */
  --warning:    oklch(77.14% 0.1793 109.32);
  --success:    oklch(88.25% 0.2462 143.13);
  --info:       oklch(73.15% 0.1442 250.42);
  --error:      oklch(68.97% 0.1998 23.98);
}


body.light{
  /* Backgrounds */
  --bg-dark:    oklch(92.49% 0 0);
  --bg:         oklch(96.12% 0 0);
  --bg-light:   oklch(100% 0 0);

  --brand-gradient: linear-gradient(90deg in oklch, oklch(60% 0.24 276) 0%, oklch(83% 0.18 316) 100%);
  --gradient: linear-gradient(0deg, var(--bg) 95%, var(--bg-light));
  --gradient-hover: linear-gradient(0deg, var(--bg), var(--bg-light));

  /* Border */
  --border:       oklch(42.02% 0 0);
  --highlight:    oklch(100% 0 0);
  --border-card: solid 2px var(--bg);

  /* Text */
  --text:         oklch(15.91% 0 0);
  --text-secondary: oklch(32.11% 0 0);
  --text-muted:   oklch(42.02% 0 0);

  /* alert colors */
  --warning:    oklch(60.14% 0.1793 109.32);
}

* {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-dark);
  min-height: 100vh;
}

body.landing {
  display: flex;
  flex-direction: column;
}

/* Login Card Styles */
body:not(.landing) {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 480px;
  height: 470px;
  background: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  gap: 20px;
  border: var(--border-card);
  border-top: 1px solid var(--highlight);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.text1 {
  font-size: 1.35rem;
  color: var(--text);
}

.text2 {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

#themeToggle {
  width: 1.2rem;
  height: 1.2rem;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
}

#themeToggle i {
  color: var(--text);
  font-size: 1.2rem;
}

i {
  color: var(--text);
  font-size: 1.2rem;
}

.logo {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Audiowide", sans-serif;
  font-weight: 400;
  font-style: normal;
}

form {
  flex-grow: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  gap: 20px;
}

p {
  color: var(--text-muted);
  font-size: 1rem;
}

input {
  width: 100%;
  height: 45px;
  font-size: 1rem;
  background: var(--bg-light);
  color: var(--text);
  border-radius: 12px;
  outline: none;
  border: none;
  padding: 10px 10px;
}

button[type="submit"],
.login-card button:not(#themeToggle) {
  width: 100%;
  height: 45px;
  border-radius: 12px;
  background: var(--brand-gradient);
  font-size: 1rem;
  border: none;
  outline: none;
  color: var(--bg);
  cursor: pointer;
}

button:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 12px oklch(60% 0.24 276 / 0.5));
}

a {
  color: var(--text-muted);
  text-decoration: none;
}

a i {
  color: var(--text-muted);
}

.error-msg {
  color: var(--error);
}


/* ============================================
   LANDING PAGE STYLES
   ============================================ */

/* Navbar */
.navbar {
  background: var(--bg-dark);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  z-index: 100;
}

.navbar .logo {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--brand-c1);
}

#themeToggle {
  width: auto;
  height: auto;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 120px 48px 80px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  animation: fadeUp 0.6s ease;
}

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

.hero-headline {
  font-family: "Audiowide", sans-serif;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 400;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-subline {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 16px 48px;
  background: var(--brand-gradient);
  color: var(--bg);
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 12px oklch(60% 0.24 276 / 0.5));
}

/* Features Section */
.features {
  padding: 80px 48px 120px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg);
  border: var(--border-card);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card i {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-family: "Audiowide", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}


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

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .feature-card {
    padding: 32px 24px;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 20px 24px;
  }

  .navbar .logo {
    font-size: 1.15rem;
  }

  .hero {
    padding: 100px 24px 60px;
  }

  .hero-subline {
    font-size: 1.1rem;
  }

  .cta-button {
    padding: 14px 36px;
    font-size: 1rem;
  }

  .features {
    padding: 60px 24px 80px;
  }
}
