/* Updated register.css - Matching the green login page design */

:root {
  --primary-color: #7ed957; /* Bright green from the login page */
  --primary-light: #a5e685;
  --primary-dark: #5eac37;
  --background-color: #e0f5c3; /* Light green background */
  --card-bg-color: #ffffff;
  --text-color: #333333;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --black-separator: #000000;
  --border-radius: 8px;
  --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Global Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  min-height: 100vh;
}

/* Main black separator at the top of the page */


/* Page container */
.page_container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 20px);
  padding: 2rem;
}

/* Registration page card */
.page_register {
  background-color: var(--card-bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 12px solid var(--black-separator);
}

/* Register header */
.register_header {
  text-align: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.register_header h1 {
  font-size: 24px;
  margin-bottom: 8px;
  position: relative;
  color: var(--text-color);
}

.register_header h1:after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 8px auto 0;
}

.register_header p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

/* Breadcrumbs */
.cmp_breadcrumbs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  justify-content: center;
  font-size: 14px;
}

.cmp_breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.cmp_breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  color: var(--text-light);
}

.cmp_breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Form styling */
.cmp_form {
  padding: 0 2rem 1.5rem;
}

/* Scrollable form container */
.form-scroll-container {
  max-height: 400px;
  overflow-y: auto;
  margin: 1.5rem 0;
  padding: 0 5px 0 0;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: #fafafa;
}

/* Custom scrollbar */
.form-scroll-container::-webkit-scrollbar {
  width: 8px;
}

.form-scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.form-scroll-container::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

.form-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Form fieldsets */
fieldset {
  border: none;
  padding: 15px;
  margin: 0 0 10px 0;
  background-color: #ffffff;
}

legend {
  font-weight: 600;
  color: var(--text-color);
  padding: 0 0 8px 0;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
}

.fields {
  margin-bottom: 15px;
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-size: 16px;
  transition: var(--transition);
  box-sizing: border-box;
  background-color: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(126, 217, 87, 0.2);
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 14px;
}

/* Required field marker */
label .required:after {
  content: "*";
  color: #d32f2f;
  margin-left: 3px;
}

/* Checkbox styling */
.optin {
  margin-bottom: 10px;
}

.optin label {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  font-weight: normal;
}

.optin input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 3px;
  accent-color: var(--primary-color);
}

/* Consent section */
.consent {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  border-left: 3px solid var(--primary-color);
}

/* Reviewer section */
.reviewer {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  border-left: 3px solid var(--primary-color);
}

#reviewerOptinGroup {
  margin-bottom: 12px;
}

#interests {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-size: 14px;
}

/* Button container */
.buttons {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

/* Submit button */
button.submit {
  background-color: #7ed957;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-width: 180px;
}

button.submit:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Login link in footer */
.register_footer {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 1rem;
}

.register_footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.register_footer a:hover {
  text-decoration: underline;
}

/* Error messages */
.formErrors {
  background-color: #ffebee;
  color: #c62828;
  padding: 12px;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  font-size: 14px;
}

/* reCAPTCHA container */
.recaptcha_wrapper {
  display: flex;
  justify-content: center;
  margin: 15px 0;
}

/* Decorative elements to match login page */

/* JSON logo styling (assuming login page has this) */
.json-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1rem;
}

/* Add decorative elements similar to login page */
.form-decoration {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--primary-light);
  opacity: 0.2;
  z-index: 0;
}

.decoration-1 {
  top: -20px;
  left: -20px;
}

.decoration-2 {
  bottom: -30px;
  right: -20px;
  width: 100px;
  height: 100px;
}

/* Add icon styling for form fields (if using Font Awesome) */
.input-icon-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.input-with-icon {
  padding-left: 40px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page_container {
    padding: 1rem;
  }
  
  .page_register {
    box-shadow: none;
  }
  
  .form-scroll-container {
    max-height: 350px;
  }
}

/* Hide screens reader only text */
.pkp_screen_reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Add decoration for profile section */
.profile-section {
  position: relative;
  padding: 15px;
  border-left: 3px solid var(--primary-color);
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
}

/* Add side color indicator for the form scroll container */
.form-scroll-container {
  border-left: 5px solid var(--primary-color);
}

/* Additional styling for password fields */
.password-field-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  cursor: pointer;
  background: none;
  border: none;
}

/* Add styling for a more prominent journal branding */
.journal-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.journal-logo {
  max-height: 50px;
  margin-right: 10px;
}

.journal-name {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-color);
}
