body.page-template-reg-page .reg-container,
body.page-template-login-page .login-container {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%) !important;
  color: #ffffff !important;
  min-height: 100vh !important;
}

body.page-template-reg-page .login-form-container,
body.page-template-login-page .login-form-container {
  background: rgba(26, 26, 26, 0.95) !important;
  border: 2px solid #cbb279 !important;
  border-radius: 16px !important;
  padding: 40px !important;
  margin: 50px auto !important;
  min-width: 500px !important;
  max-width: 500px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(10px) !important;
}

@media (max-width: 768px) {
  body.page-template-reg-page .login-form-container,
  body.page-template-login-page .login-form-container {
    min-width: 100% !important;
    max-width: 100% !important;
  }
}

body.page-template-reg-page h1,
body.page-template-reg-page h2,
body.page-template-reg-page h3,
body.page-template-login-page h1,
body.page-template-login-page h2,
body.page-template-login-page h3 {
  color: #cbb279 !important;
  font-weight: 600 !important;
  font-size: 28px !important;
}

body.page-template-reg-page input[type="text"],
body.page-template-reg-page input[type="email"],
body.page-template-reg-page input[type="password"],
body.page-template-reg-page input[type="tel"],
body.page-template-reg-page input[type="number"],
body.page-template-reg-page input[type="date"],
body.page-template-login-page input[type="text"],
body.page-template-login-page input[type="email"],
body.page-template-login-page input[type="password"],
body.page-template-login-page input[type="tel"],
body.page-template-login-page input[type="number"] {
  background: rgba(10, 10, 10, 0.8) !important;
  border: 2px solid #cbb279 !important;
  color: #ffffff !important;
  padding: 15px 20px !important;
  border-radius: 12px !important;
  width: 100% !important;
  font-size: 16px !important;
  transition: all 0.3s ease !important;
  margin-bottom: 20px !important;
}

body.page-template-reg-page input[type="date"],
body.page-template-login-page input[type="date"] {
  -webkit-appearance: none; /* убираем нативный стиль iOS/Android */
  -moz-appearance: none;
  appearance: none;

  background: rgba(10, 10, 10, 0.8) !important;
  border: 2px solid #cbb279 !important;
  color: #ffffff !important;
  padding: 15px 20px !important;
  border-radius: 12px !important;
  width: 100% !important;
  max-width: 416px !important;
  min-width: 0 !important;
  font-size: 16px !important;
}

body.page-template-reg-page
  input[type="date"]::-webkit-calendar-picker-indicator,
body.page-template-login-page
  input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(0.5) saturate(2) hue-rotate(10deg);
  cursor: pointer;
}

body.page-template-reg-page input:focus,
body.page-template-login-page input:focus {
  border-color: #d1ba83 !important;
  box-shadow: 0 0 0 4px rgba(203, 178, 121, 0.2) !important;
  outline: none !important;
  background: rgba(10, 10, 10, 0.9) !important;
}

body.page-template-reg-page button,
body.page-template-reg-page input[type="submit"],
body.page-template-login-page button,
body.page-template-login-page input[type="submit"] {
  border: none !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

body.page-template-reg-page button:hover,
body.page-template-reg-page input[type="submit"]:hover,
body.page-template-login-page button:hover,
body.page-template-login-page input[type="submit"]:hover {
  background: linear-gradient(135deg, #d1ba83, #cbb279) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(203, 178, 121, 0.3) !important;
}

body.page-template-reg-page a,
body.page-template-login-page a {
  color: #cbb279 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

body.page-template-reg-page a:hover,
body.page-template-login-page a:hover {
  color: #d1ba83 !important;
  text-decoration: underline !important;
}

body.page-template-reg-page .error-message,
body.page-template-reg-page .errors,
body.page-template-login-page .error-message,
body.page-template-login-page .errors {
  background: rgba(248, 113, 113, 0.1) !important;
  border: 1px solid #f87171 !important;
  color: #f87171 !important;
  padding: 15px !important;
  border-radius: 8px !important;
  margin: 20px 0 !important;
}

body.page-template-reg-page .success-message,
body.page-template-login-page .success-message {
  background: rgba(74, 222, 128, 0.1) !important;
  border: 1px solid #4ade80 !important;
  color: #4ade80 !important;
  padding: 15px !important;
  border-radius: 8px !important;
  margin: 20px 0 !important;
}

body.page-template-reg-page label,
body.page-template-login-page label {
  display: block !important;
  margin-bottom: 8px !important;
  font-weight: 500 !important;
  color: #cbb279 !important;
}

body.page-template-reg-page .links-bottom-col a,
body.page-template-login-page .links-bottom-col a {
  display: block !important;
  width: 100% !important;
  padding: 12px 20px !important;
  text-align: center !important;
  background: rgba(203, 178, 121, 0.1) !important;
  border: 1px solid #cbb279 !important;
  border-radius: 16px !important;
  transition: all 0.3s ease !important;
}

/* Отступ только между кнопками */
body.page-template-reg-page .links-bottom-col a + a,
body.page-template-login-page .links-bottom-col a + a {
  margin: 10px !important;
}

body.page-template-reg-page .links-bottom-col a:hover,
body.page-template-login-page .links-bottom-col a:hover {
  background: #cbb279 !important;
  color: #0a0a0a !important;
  transform: translateY(-1px) !important;
}

body.page-template-reg-page .captcha-label,
body.page-template-login-page .captcha-label {
  color: #cbb279 !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
}

body.page-template-reg-page .ast-container,
body.page-template-reg-page .site-content,
body.page-template-reg-page #content,
body.page-template-login-page .ast-container,
body.page-template-login-page .site-content,
body.page-template-login-page #content {
  background: transparent !important;
}

@media (max-width: 768px) {
  body.page-template-reg-page .login-form-container,
  body.page-template-login-page .login-form-container {
    padding: 30px 20px !important;
  }

  body.page-template-reg-page h2,
  body.page-template-login-page h2 {
    font-size: 24px !important;
  }
}
