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

a {
  color: inherit;
  text-decoration: none;
}

:root {
  --primary: #1a1a3e;
  --secondary: #12122f;
  --accent: #2a2a5e;
  --gold: #D4AF37;
  --background: #0d0d24;
  --text-light: #EAEAEA;
  --text-muted: #8892B0;
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--background);
  color: var(--text-light);
  min-height: 100vh;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  text-align: center;
  padding: 40px 0;
}

.title {
  font-size: 2.5rem;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.auth-box {
  background: var(--secondary);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.tab {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--text-light);
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tab.active {
  background: var(--accent);
}

.tab:hover:not(.active) {
  opacity: 0.8;
}

.form {
  display: none;
}

.form.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--primary);
  border: 1px solid var(--text-muted);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
}

.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 20px rgba(42, 42, 94, 0.6);
}

.message {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.message.error {
  color: var(--text-muted);
}

.message.success {
  color: var(--gold);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 900px;
}

.intro-box {
  background: var(--secondary);
  border-radius: 16px;
  padding: 30px;
  width: 100%;
  max-width: 600px;
  text-align: center;
  border: 1px solid var(--gold);
  margin-bottom: 20px;
}

.welcome-text {
  color: var(--text-light);
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 10px;
  font-family: 'Lato', sans-serif;
}

.suggestion-link {
  display: block;
  text-align: center;
  color: var(--text-light) !important;
  font-size: 1rem;
  text-decoration: none !important;
  padding: 16px 20px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
  line-height: 1.5;
  box-sizing: border-box;
}

.suggestion-link:hover {
  background: var(--secondary);
  border-color: var(--text-light);
}

.suggestion-link strong u {
  color: var(--gold);
  text-decoration: underline;
}

.intro-box h2 {
  color: var(--gold);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.intro-box p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
  text-align: left;
}

.intro-box p:last-child {
  margin-bottom: 0;
}

.intro-box strong {
  color: var(--gold);
}

.features-prompt {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 1rem;
}

.feature-card {
  background: var(--secondary);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.feature-card h3 {
  color: var(--gold);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer {
  text-align: center;
  padding: 30px 20px 20px;
  margin-top: 40px;
  border-top: 1px solid var(--text-muted);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--gold) !important;
  text-decoration: none !important;
  background: transparent;
  border: none;
  padding: 0;
  transition: all 0.3s ease;
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-icon-link:hover {
  color: var(--text-light) !important;
  transform: scale(1.15);
}

.footer-icon {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px;
  max-height: 28px;
  fill: currentColor;
  display: block;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.footer-link {
  color: var(--text-muted) !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--gold);
}

@media (max-width: 600px) {
  .title {
    font-size: 1.8rem;
  }

  .auth-box {
    padding: 25px;
  }
}
