/* Join Catalog Form Styles */
.join-catalog-container, .client-registration-container {
    max-width: 800px;
    margin: 100px auto 50px;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.join-catalog-header {
    margin-bottom: 30px;
    text-align: center;
}

.join-catalog-header h1 {
    margin: 0;
    color: #333;
    font-size: 32px;
}

.form-section {
    margin-bottom: 40px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.form-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #923131;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: #923131;
    outline: none;
    box-shadow: 0 0 0 2px rgba(146, 49, 49, 0.1);
}

.field-description {
    margin-top: 6px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
}

.terms-acceptance a {
    color: #923131;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-acceptance a:hover {
    text-decoration: underline;
}

.form-actions {
    text-align: center;
    margin-top: 20px;
}

.submit-button {
    background-color: #923131;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #7a2828;
}

.error-messages {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.error-messages ul {
    margin: 0;
    padding-left: 20px;
}

.submission-success {
    text-align: center;
    padding: 50px 20px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 8px;
    margin: 30px auto;
}

.submission-success h2 {
    color: #155724;
    margin-bottom: 20px;
}

.already-registered {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 30px auto;
}

.already-registered .button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: #923131;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.already-registered .button:hover {
    background-color: #7a2828;
}

/* Password visibility toggle */
.password-field-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
    padding: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #923131;
}

.password-field-container input[type="password"],
.password-field-container input[type="text"] {
    padding-right: 40px; /* Make room for the icon */
}

/* Image upload preview styles */
.image-upload-container {
    margin-top: 10px;
}

.image-preview-container {
    margin-top: 15px;
    display: none;
    position: relative;
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.image-preview-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-preview-container .remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    border: none;
    padding: 0;
}

.image-preview-container .remove-image:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.image-preview-container .remove-image svg {
    width: 16px;
    height: 16px;
    color: #923131;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
}

.custom-file-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-file-button:hover {
    background-color: #ebebeb;
    border-color: #ccc;
}

.file-input-wrapper input[type="file"] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

.file-name {
    margin-left: 10px;
    font-size: 14px;
    color: #666;
}

/* Custom checkbox styling */
.custom-checkbox {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    display: inline-block;
    height: 22px;
    width: 22px;
    margin-right: 10px;
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: #923131;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #923131;
    border-color: #923131;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .join-catalog-container {
        padding: 15px;
    }
    
    .form-section {
        padding: 15px;
    }
}

/* Additional styles for the login page */
.login-container {
  max-width: 600px;
}

.login-footer {
  margin-top: 30px;
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.registration-links p {
  margin-bottom: 15px;
  font-weight: 500;
}

.registration-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.register-link {
  padding: 10px 20px;
  background-color: #923131;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.register-link:hover {
  background-color: #7a2828;
}

.forgot-password {
  margin-top: 15px;
}

.forgot-password a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password a:hover {
  text-decoration: underline;
  color: #923131;
}

@media (max-width: 768px) {
  .registration-buttons {
      flex-direction: column;
      align-items: center;
  }
}