/* style/register.css */

/* --- General Page Styling --- */
.page-register {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Custom background color */
  line-height: 1.6;
}

.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-register__section-title {
  font-size: clamp(28px, 4vw, 38px); /* H2, H3 titles */
  color: #E53935; /* Main brand color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-register__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #333333;
}

/* --- Hero Section --- */
.page-register__hero-section {
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #F5F7FA; /* Match page background */
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it takes full width */
  overflow: hidden; /* Prevent image overflow */
  box-sizing: border-box;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Min image size */
}

.page-register__hero-content {
  max-width: 900px;
  padding: 40px 20px 0;
  box-sizing: border-box;
}

.page-register__main-title {
  font-size: clamp(32px, 5vw, 48px); /* H1 title */
  color: #E53935;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.page-register__description {
  font-size: 20px;
  color: #333333;
  margin-bottom: 30px;
}

.page-register__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 400px; /* Limit button group width */
  margin: 0 auto;
  box-sizing: border-box;
}

/* --- Buttons --- */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button max width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-register__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-register__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.6);
}

.page-register__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-register__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(229, 57, 53, 0.3);
}

/* --- Form Section --- */
.page-register__form-section {
  padding: 80px 0;
  background-color: #F5F7FA; /* Light background */
}

.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background-color: #ffffff; /* Card background */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #E0E0E0; /* Border color */
  box-sizing: border-box;
}

.page-register__form-group {
  margin-bottom: 25px;
}

.page-register__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #333333; /* Text Main color */
  font-size: 16px;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #E0E0E0; /* Border color */
  border-radius: 8px;
  font-size: 16px;
  color: #333333;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-register__form-input::placeholder {
  color: #888888;
}

.page-register__form-input:focus {
  border-color: #FF5A4F;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 90, 79, 0.2);
}

.page-register__captcha-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-register__captcha-input {
  flex-grow: 1;
}

.page-register__captcha-image {
  flex-shrink: 0;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  height: 60px; /* Fixed height for captcha image */
  width: 200px; /* Fixed width for captcha image */
  min-width: 200px; /* Ensure min size */
  min-height: 60px; /* Ensure min size */
  object-fit: cover;
  display: block;
}

.page-register__terms-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.page-register__checkbox-input {
  margin-right: 10px;
  min-width: 18px;
  min-height: 18px;
}

.page-register__checkbox-label {
  font-size: 15px;
  color: #333333;
}

.page-register__terms-link {
  color: #E53935;
  text-decoration: none;
  font-weight: bold;
}

.page-register__terms-link:hover {
  text-decoration: underline;
}

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  font-size: 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__submit-button:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.6);
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: #333333;
}

.page-register__login-link {
  color: #E53935;
  text-decoration: none;
  font-weight: bold;
}

.page-register__login-link:hover {
  text-decoration: underline;
}

/* --- Benefits Section --- */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #E53935; /* Dark section with brand color */
  color: #ffffff; /* White text for dark background */
}

.page-register__benefits-section .page-register__section-title,
.page-register__benefits-section .page-register__section-description {
  color: #ffffff;
}

.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__benefit-card {
  background-color: #ffffff; /* Card background */
  color: #333333; /* Text Main color */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #E0E0E0; /* Border color */
}

.page-register__benefit-icon {
  width: 100%; /* Ensure image takes full card width */
  max-width: 100%;
  height: auto;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

.page-register__benefit-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #E53935; /* Main brand color */
}

.page-register__benefit-description {
  font-size: 16px;
  color: #333333;
}

/* --- Responsible Gaming Section --- */
.page-register__responsible-gaming-section {
  padding: 80px 0;
  background-color: #F5F7FA; /* Light background */
  text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-register__hero-content {
    padding: 30px 20px 0;
  }
  .page-register__main-title {
    font-size: clamp(28px, 4.5vw, 42px);
  }
  .page-register__description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-register__container {
    padding: 0 15px;
  }
  .page-register__section-title {
    font-size: clamp(24px, 6vw, 32px);
  }
  .page-register__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Hero Section */
  .page-register__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }
  .page-register__hero-content {
    padding: 20px 15px 0;
  }
  .page-register__main-title {
    font-size: clamp(26px, 7vw, 36px);
  }
  .page-register__description {
    font-size: 16px;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
    padding: 0 15px; /* Add padding to container */
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Form Section */
  .page-register__form-section {
    padding: 60px 0;
  }
  .page-register__registration-form {
    padding: 25px;
    margin: 0 15px;
  }
  .page-register__form-group {
    margin-bottom: 20px;
  }
  .page-register__captcha-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-register__captcha-input {
    width: 100%;
  }
  .page-register__captcha-image {
    width: 100%; /* Make captcha image responsive */
    max-width: 200px; /* But keep max width */
    height: auto; /* Adjust height automatically */
    min-width: 150px;
    min-height: 50px;
  }
  .page-register__submit-button {
    font-size: 18px;
    padding: 12px;
  }

  /* Benefits Section */
  .page-register__benefits-section {
    padding: 60px 0;
  }
  .page-register__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-register__benefit-card {
    padding: 25px;
  }
  .page-register__benefit-icon {
    min-width: 150px;
    min-height: 150px;
  }

  /* Responsible Gaming Section */
  .page-register__responsible-gaming-section {
    padding: 60px 0;
  }

  /* Image responsive rules for ALL images within .page-register */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__hero-image-wrapper,
  .page-register__registration-form,
  .page-register__benefits-section,
  .page-register__responsible-gaming-section,
  .page-register__benefit-card,
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow */
  }
  .page-register__form-input,
  .page-register__submit-button {
    padding-left: 15px;
    padding-right: 15px;
  }
}