:root {
  /* Core Colors (Nature & Forest Theme) */
  --primary: #2E4F2F;         /* Forest Green */
  --primary-light: #4F8053;   /* Moss Green */
  --primary-dark: #1A331C;    /* Deep Woodland */

  --bg: #F4F7F3;              /* Light Leaf Mist */
  --text: #2B2B2B;            /* Dark Bark */
  --text-muted: #6F7B68;      /* Soft Fern Grey */
  --text-inverse: #d8f8c5;    /* Pale Mint Green */

  --bg-card: #FFFFFF;         /* Clean Light Panel */
  --border: #C9D5C4;          /* Soft Sage Border */
  --shadow: rgba(46, 79, 47, 0.15); /* Forest Shadow */
  --shadow-primary: rgba(79, 128, 83, 0.25);

  /* Accent Colors */
  --accent: #649d5e;          /* Earthy Brown */
  --accent-secondary: #556B2F;/* Olive Grove */
  --overlay: rgba(46, 79, 47, 0.1);  /* Forest Overlay */
  --particle: rgba(79, 128, 83, 0.08); /* Moss Particle */
}

.darkmode {
  --bg: #121A12;              /* Forest Night */
  --text: #EAEFE7;            /* Light Mist Text */
  --text-muted: #9AA995;      /* Muted Moss Grey */
  --bg-card: #1C241C;         /* Deep Forest Panel */
  --border: #2A352B;          /* Dark Woodland Border */
  --shadow: rgba(0, 0, 0, 0.5); /* Strong Depth Shadow */
  --text-inverse: #060a06;    /* Dark Canopy */

  /* Dark Accents */
  --accent: #0b2a08;          /* Bark Accent */
  --accent-secondary: #6F8F55;/* Woodland Olive */
}

/* General Styles */
body.page-background {
  background-color: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}

.overlay-layer {
  background-color: var(--overlay);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Main Content */
.center-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.auth-container {
  background-color: var(--bg-card);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px var(--shadow);
  text-align: center;
}

/* Site Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.site-logo {
  max-width: 40px;
  margin-right: 10px;
}

.site-title,
.site-name {
  font-size: 24px;
  color: var(--primary);
}

/* Titles */
.auth-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary);
  text-align: center;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 20px;
  text-align: center;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-form .form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--primary);
}

.form-label-wrapper {
  margin-bottom: 20px;
  position: relative;
}

.form-control,
.form-input {
  width: 100%;
  padding: 15px 15px 15px 35px;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.form-control {
  border: 3px solid var(--primary);
  padding: 10px 10px 10px 30px;
}

/* Input field icon wrapper */
.input-icon-wrapper,
.input-icon {
  position: relative;
}

.input-icon-wrapper i,
.input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(25%);
  color: var(--primary);
  font-size: 16px;
  transition: color 0.3s;
}

.form-label-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 10px 10px 10px 40px; /* Adjust padding to make space for the icon */
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
  color: var(--text);
  transition: border-color 0.3s; 
}

.input-icon {
  position: absolute;
  left: 10px;
  transform: translateY(60%);
  color: var(--accent);
  font-size: 20px;
}

/* Password visibility toggle */
.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
}

.toggle-password:hover,
.input-icon-wrapper i:hover,
.input-icon:hover {
  color: var(--accent);
}

/* Checkbox */
.form-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--primary);
}

.form-checkbox {
  accent-color: var(--primary);
}

/* Buttons */
.primary-button {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  color: var(--text-inverse);
  background-color: var(--primary);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.primary-button:hover {
  background-color: var(--primary-light);
}

/* Links */
.link-info,
.info-link {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  text-align: center;
}

.link-info:hover,
.info-link:hover {
  text-decoration: underline;
  color: var(--primary-light);
}

/* Response Messages */
.response-message {
  display: none;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 14px;
}

.response-error {
  background-color: var(--bg-card);
  border: 1px solid #ff0004;
  color: #ff0004;
}

.response-success {
  background-color: var(--bg-card);
  border: 1px solid var(--primary);
  color: var(--primary);
}


