:root {
    --bg: linear-gradient(135deg, #0b0c10, #12141f);
    --panel: #11131a;
    --accent: #6ea8ff;
    --accent-hover: #4a8dff;
    --text: #e9ecf1;
    --muted: #aab0c0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.auth-container {
    background: var(--panel);
    padding: 2.5rem 3rem;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 420px;
    transition: all 0.3s ease;
}

h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.8rem;
}

.auth-form .form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #2a2d36;
    background: #1a1c24;
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.form-checkbox input {
    margin-top: 0.2rem;
}

.form-checkbox a {
    color: var(--accent);
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

button {
    width: 100%;
    padding: 0.8rem;
    background: var(--accent);
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.switch {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.switch a {
    color: var(--accent);
    text-decoration: none;
}

.switch a:hover {
    text-decoration: underline;
}

/* Container for hidden extra fields */
.extra-info {
  display: none;
  margin-top: 1rem;
  animation: fadeIn 0.3s ease;
}

/* Smooth fade-in when shown */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* General input + select styling */
.extra-info input,
.extra-info select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 0.5rem;
  border: 1px solid #333;
  border-radius: 6px;
  background-color: #1b1d25;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.extra-info input:focus,
.extra-info select:focus {
  border-color: #6ea8ff;
}

/* Label styling */
.extra-info label {
  display: block;
  margin-top: 0.75rem;
  font-size: 14px;
  color: #ccc;
}

/* Button to reveal hidden info */
#show-extra {
  display: block;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 10px 14px;
  background-color: #2a2d36;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

#show-extra:hover {
  background-color: #558de6;
}

/* Age dropdown narrower */
#age {
  width: 100%;
  appearance: none;
  background: #1b1d25 url('data:image/svg+xml;utf8,<svg fill="%23ccc" height="14" viewBox="0 0 24 24" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
  background-size: 14px;
  cursor: pointer;
}

/* Gender dropdown */
#gender {
  width: 100%;
  appearance: none;
  background: #1b1d25 url('data:image/svg+xml;utf8,<svg fill="%23ccc" height="14" viewBox="0 0 24 24" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
  background-size: 14px;
  cursor: pointer;
}

/* Responsive tweak for mobile */
@media (max-width: 600px) {
  .extra-info input,
  .extra-info select {
    font-size: 16px;
    padding: 12px;
  }

  #show-extra {
    width: 100%;
  }
}



/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .auth-container {
        padding: 2rem;
        max-width: 90%;
    }

    h1 {
        font-size: 1.6rem;
    }

    input, button {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }

    .auth-container {
        padding: 1.5rem;
        border-radius: 0.75rem;
    }

    h1 {
        font-size: 1.4rem;
    }

    input, button {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    label {
        font-size: 0.85rem;
    }

    .switch {
        font-size: 0.85rem;
    }

    .form-checkbox {
        flex-direction: column;
        align-items: flex-start;
    }
}