/* ================================================
   1. AUTHENTICATION THEME (Matches Landing Page)
   ================================================ */
:root {
  --bg-gradient: radial-gradient(circle at top, #3E1F47, #2D1533);
  --color-secondary: #F4C542; /* Gold */
  --color-text: #ffffff;
  --color-muted: #cccccc;
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.1);
  --input-bg: rgba(0, 0, 0, 0.2);
  
  --font-main: 'Poppins', sans-serif;
  --font-logo: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-gradient);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ================================================
   2. CONTAINER CARD
   ================================================ */
.container {
  width: 100%;
  max-width: 420px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.logo {
  font-family: var(--font-logo);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 30px;
  text-shadow: 0 0 10px rgba(244, 197, 66, 0.4);
  letter-spacing: -1px;
}

/* ================================================
   3. FORM ELEMENTS
   ================================================ */
.form-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Inputs */
input {
  width: 100%;
  padding: 15px;
  background: var(--input-bg);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-family: var(--font-main);
  transition: 0.3s ease;
}

input::placeholder { color: rgba(255, 255, 255, 0.5); }

input:focus {
  outline: none;
  border-color: var(--color-secondary);
  background: rgba(0, 0, 0, 0.4);
}

/* Primary Button (Gold) */
.btn--primary {
  width: 100%;
  padding: 15px;
  background-color: var(--color-secondary);
  color: #3E1F47; /* Dark text on gold */
  font-weight: 700;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}

.btn--primary:hover {
  background-color: #e2b336;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn--primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ================================================
   4. LINKS & TEXT
   ================================================ */
.link-text {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 15px;
}

.link-text a, .signup-link, .login-link {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.link-text a:hover {
  text-decoration: underline;
  color: #fff;
}

/* Messages */
.message {
  margin-top: 15px;
  font-size: 0.9rem;
  min-height: 20px;
}
.message.error { color: #ff6b6b; }
.message.success { color: #51cf66; }

/* Password Toggle */
.input-group { position: relative; }
.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: rgba(255,255,255,0.6);
}
.toggle-password:hover { color: white; }

/* Forgot Password Section */
#forgotPasswordSection {
  display: none;
  margin-top: 20px;
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
}
.forgot-title { color: white; margin-bottom: 15px; font-size: 1.1rem; }
