:root {
  --primary-color: #007aff; 
  --text-color: #333;
  --text-light: #666;
  --bg-color: #f7f9fc;
  --card-bg: #fff;
  --border-color: #e0e0e0;
  --shadow-light: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Base Body Styles for Centering */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Auth Container & Card */
.auth-container {
  width: 100%;
  max-width: 520px; 
  padding: 20px;
}

.auth-box {
  background-color: var(--card-bg);
  padding: 35px;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  text-align: center;
}

/* Specific Headings and Text */
.auth-box h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.auth-box .subtitle {
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* Social Login Buttons (Side-by-Side) */
.auth-box .social-logins {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.auth-box .social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1; /* Makes buttons take up equal space */
  padding: 10px 5px; /* Reduced padding for longer button text */
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: transparent;
}

.auth-box .social-button:hover {
  background-color: #f0f0f0;
}

.auth-box .social-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  min-width: 18px; /* Ensures icon spacing is maintained */
}

/* Divider (The "or continue with" text) */
.auth-box .divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem;
  margin: 20px 0;
}

.auth-box .divider::before,
.auth-box .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}
.auth-box .divider::before { margin-right: 15px; }
.auth-box .divider::after { margin-left: 15px; }

/* Form Styles */
.auth-box #signup-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-box .form-group {
  text-align: left;
}

.auth-box label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.auth-box input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.auth-box input:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Primary Submit Button */
.auth-box .primary-button {
  background-color: var(--primary-color);
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 5px; /* Added slight margin */
}

.auth-box .primary-button:hover {
  background-color: #0056b3;
}

/* Sign In Prompt Link */
.auth-box .signin-prompt {
  margin-top: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Specific Link Styling */
.auth-box a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.auth-box a:hover {
  text-decoration: underline;
}

/* Message Modal (Kept separate from auth-box for fixed positioning) */
.message-modal {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.message-modal.visible {
  opacity: 1;
  visibility: visible;
}

.message-modal.error {
    background-color: #dc3545;
}


/* ... Existing CSS styles ... */

/* --- Password Toggle Styles --- */

/* Wrapper to establish a positioning context for the toggle icon */
.password-input-wrapper {
  position: relative;
  /* Ensure the input takes up the full width inside the wrapper */
  display: flex; 
}

/* Base style for the input field inside the wrapper */
.password-input-wrapper input {
  width: 100%;
  padding-right: 40px; /* Make space for the icon so text doesn't overlap */
}

/* Style for the toggle button (the clickable icon) */
.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-size: 18px; /* Icon size */
  color: #757575; /* Subtle color */
  user-select: none; /* Prevent text selection */
  z-index: 10; /* Ensure it's above the input */
}

/* Icon for when the password is HIDDEN (i.e., when you click to SHOW it) */
.password-toggle.show-password::before {
  content: "👀"; /* Open eyes icon */
}

/* Icon for when the password is VISIBLE (i.e., when you click to HIDE it) */
.password-toggle.hide-password::before {
  content: "🙈"; /* Monkey covering eyes icon */
}