: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);
}

/* 🔑 GLOBAL BODY STYLES (Still needed to center the card on THIS page) */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0; /* Ensure no unwanted margin */
  padding: 0;
}

/* Login Container & Card */
.login-container {
  width: 100%;
  max-width: 420px; 
  padding: 20px;
}

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

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

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

/* Social Login Buttons */
.login-box .social-logins {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.login-box .social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding: 10px 15px;
  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;
}

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

.login-box .social-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

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

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

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

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

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

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

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

/* Footer Options and Links */
.login-box .form-footer-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.login-box .checkbox-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Making 'a' (anchor) tags specific to prevent style leakage */
.login-box a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

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

.login-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;
}

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

/* Signup Prompt */
.login-box .signup-prompt {
  margin-top: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Modal Styles */
/* Modal stays global as it's a fixed element often outside the main container */
.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;
}

/* --- Password Toggle Styles (Add or ensure these exist) --- */

/* 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 wrapper) */
.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  width: 24px;
  height: 24px;
  color: #757575; /* Icon color */
  user-select: none;
  z-index: 10; 
}

/* Ensure the SVG inside the toggle button fills its container and inherits color */
.password-toggle svg {
    width: 100%;
    height: 100%;
    /* currentColor makes the stroke color inherit from the parent .password-toggle's color property */
    stroke: currentColor; 
}