/* Terms and Login Page Styles */

:root {
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #272829; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #45505b; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #0563bb; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}


body.terms-login-page {
  padding-top: 100px;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.main {
  margin-top: 30px;
}

.terms-container {
  max-width: 800px;
  margin: 40px auto;
}

.terms-box {
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.terms-box h3 {
  margin-top: 0;
  color: #333;
}

.terms-box h4 {
  margin-top: 20px;
  color: #555;
  font-weight: 600;
}

.terms-box p {
  color: #666;
  line-height: 1.6;
}

.acceptance-inline {
  margin: 20px 0 10px;
  padding: 12px 14px;
  background-color: #f5f7fb;
  border-radius: 6px;
}

.acceptance-inline label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin: 0;
}

.acceptance-inline input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.login-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #ddd;
}

.login-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.input-with-toggle {
  position: relative;
}

.input-with-toggle input {
  padding-right: 60px; /* Extra room for full-height eye button */
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 0;
  height: 70%;            /* Match input height */
  width: 38px;             /* Comfortable tap target */
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: #333;
}

.password-toggle i {
  font-size: 20px;          /* Larger icon for visibility */
}

.form-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.login-buttons {
  margin-top: 25px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.login-buttons button {
  padding: 12px 30px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-buttons .btn-login {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
  flex: 1;
}

.login-buttons .btn-login:hover {
   background: color-mix(in srgb, var(--accent-color), transparent 25%);
}


.login-buttons .btn-home {
  background-color: #6c757d;
  color: var(--contrast-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
  flex: 1;
}

.login-buttons .btn-home:hover {
  background-color: #5a6268;
}

.forgot-password {
  text-align: center;
  margin-top: 15px;
}

.forgot-password a {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.policy-notice {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #555;
}

.policy-notice a {
  color: var(--accent-color);
  text-decoration: none;
}

.policy-notice a:hover {
  text-decoration: underline;
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.terms-error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 10px;
  display: none;
  text-align: center;
}

.section-title h2 {
  margin-bottom: 30px;
}

/* Terms box content list styles */
.terms-box ul {
  margin-left: 20px;
  color: #666;
}

.terms-box ul li {
  margin-bottom: 8px;
}

/* Login form heading */
.login-section h3 {
  text-align: center;
  margin-bottom: 30px;
}

/* Terms and Conditions Action Buttons */
.terms-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  padding-top: 20px;
}

.terms-actions a {
  padding: 12px 35px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.4s ease;
  display: inline-block;
  text-align: center;
  min-width: 180px;
}

.terms-actions .btn-login {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.terms-actions .btn-login:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(5, 99, 187, 0.3);
}

.terms-actions .btn-signup {
  color: var(--accent-color);
  background: transparent;
  border: 2px solid var(--accent-color);
}

.terms-actions .btn-signup:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(5, 99, 187, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body.terms-login-page {
    padding-top: 100px; /* Match main header height on mobile */
  }

  .main {
    margin-top: 60px;
  }

  .terms-container {
    margin: 20px auto;
  }

  .terms-box {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
  }

  .login-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .terms-actions {
    flex-direction: column;
    gap: 15px;
  }

  .terms-actions a {
    width: 100%;
    min-width: auto;
  }
}
