/* style/login.css */

/* Custom Properties for Colors */
:root {
  --sorte-bet-primary: #11A84E;
  --sorte-bet-secondary: #22C768;
  --sorte-bet-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --sorte-bet-card-bg: #11271B;
  --sorte-bet-background: #08160F;
  --sorte-bet-text-main: #F2FFF6;
  --sorte-bet-text-secondary: #A7D9B8;
  --sorte-bet-border: #2E7A4E;
  --sorte-bet-glow: #57E38D;
  --sorte-bet-gold: #F2C14E;
  --sorte-bet-divider: #1E3A2A;
  --sorte-bet-deep-green: #0A4B2C;
}

/* Base styles for the page-login scope */
.page-login {
  background-color: var(--sorte-bet-background); /* Dark background */
  color: var(--sorte-bet-text-main); /* Light text for readability */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-login__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); /* H1/H2 font size adjustment */
  color: var(--sorte-bet-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.page-login__section-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--sorte-bet-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0 80px; 
  overflow: hidden;
  background-color: var(--sorte-bet-background);
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0.3; /* Slightly dim the background image */
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem); /* Responsive H1 */
  color: var(--sorte-bet-text-main);
  margin-bottom: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--sorte-bet-text-secondary);
  margin-bottom: 40px;
}

.page-login__login-form-container {
  background-color: var(--sorte-bet-card-bg); /* Card BG */
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--sorte-bet-border);
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-login__form-group {
  text-align: left;
}

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--sorte-bet-text-main);
  font-weight: 600;
  font-size: 0.95rem;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--sorte-bet-border);
  border-radius: 8px;
  background-color: #0A2118; /* Slightly darker input background */
  color: var(--sorte-bet-text-main);
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input::placeholder {
  color: var(--sorte-bet-text-secondary);
  opacity: 0.7;
}

.page-login__form-input:focus {
  border-color: var(--sorte-bet-secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 199, 104, 0.3);
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: var(--sorte-bet-primary); /* Style checkbox */
}

.page-login__checkbox-label {
  color: var(--sorte-bet-text-secondary);
}

.page-login__forgot-password-link {
  color: var(--sorte-bet-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: var(--sorte-bet-glow);
  text-decoration: underline;
}

.page-login__btn-login {
  background: var(--sorte-bet-button-gradient);
  color: #ffffff;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-transform: uppercase;
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-login__no-account-text {
  text-align: center;
  margin-top: 25px;
  color: var(--sorte-bet-text-secondary);
  font-size: 0.95rem;
}

.page-login__register-link {
  color: var(--sorte-bet-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: var(--sorte-bet-glow);
  text-decoration: underline;
}

/* General Section Styling */
.page-login__benefits-section,
.page-login__troubleshooting-section,
.page-login__bonuses-section,
.page-login__faq-section {
  padding: 80px 0;
  background-color: var(--sorte-bet-background);
}

.page-login__guide-section,
.page-login__security-section,
.page-login__responsible-gaming-section,
.page-login__final-cta-section {
  padding: 80px 0;
  background-color: var(--sorte-bet-deep-green); /* Darker background for contrast sections */
}

/* Grids */
.page-login__benefits-grid,
.page-login__steps-grid,
.page-login__trouble-cards-grid,
.page-login__security-features-grid,
.page-login__bonuses-grid,
.page-login__responsible-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* Card Styles */
.page-login__benefit-card,
.page-login__step-card,
.page-login__trouble-card,
.page-login__security-item,
.page-login__bonus-card,
.page-login__responsible-item {
  background-color: var(--sorte-bet-card-bg);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--sorte-bet-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-card:hover,
.page-login__step-card:hover,
.page-login__trouble-card:hover,
.page-login__security-item:hover,
.page-login__bonus-card:hover,
.page-login__responsible-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(34, 199, 104, 0.3);
}

.page-login__benefit-icon,
.page-login__security-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 10px; /* Soften edges for icons */
}

.page-login__bonus-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.page-login__benefit-title,
.page-login__step-title,
.page-login__trouble-title,
.page-login__security-title,
.page-login__bonus-title,
.page-login__responsible-title {
  font-size: 1.4rem;
  color: var(--sorte-bet-text-main);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.page-login__benefit-text,
.page-login__step-text,
.page-login__trouble-text,
.page-login__security-text,
.page-login__bonus-text,
.page-login__responsible-text {
  font-size: 1rem;
  color: var(--sorte-bet-text-secondary);
  flex-grow: 1; /* Make text take available space */
}

.page-login__step-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--sorte-bet-primary);
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(34, 199, 104, 0.4);
}

.page-login__trouble-link,
.page-login__bonus-link {
  margin-top: 20px;
  color: var(--sorte-bet-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-login__trouble-link:hover,
.page-login__bonus-link:hover {
  color: var(--sorte-bet-glow);
  text-decoration: underline;
}

/* CTA Buttons */
.page-login__cta-area {
  margin-top: 60px;
  text-align: center;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-transform: uppercase;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  display: inline-block; /* For proper button behavior */
}

.page-login__btn-primary {
  background: var(--sorte-bet-button-gradient);
  color: #ffffff;
  border: none;
}

.page-login__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: var(--sorte-bet-secondary);
  border: 2px solid var(--sorte-bet-secondary);
}

.page-login__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.2);
  background-color: rgba(34, 199, 104, 0.1);
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-item {
  background-color: var(--sorte-bet-card-bg);
  border: 1px solid var(--sorte-bet-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sorte-bet-text-main);
  cursor: pointer;
  background-color: rgba(17, 168, 78, 0.1); /* Slight highlight */
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
  list-style: none; /* Remove default marker for summary */
}

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom-color: var(--sorte-bet-border);
}

.page-login__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-login__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.2);
}

.page-login__faq-qtext {
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--sorte-bet-secondary);
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or just '-' */
}

.page-login__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--sorte-bet-text-secondary);
}

.page-login__faq-answer p {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-login__hero-section {
    padding: 40px 0 60px;
  }
  .page-login__section-title {
    font-size: 2.2rem;
  }
  .page-login__main-title {
    font-size: 3rem;
  }
  .page-login__benefits-grid,
  .page-login__steps-grid,
  .page-login__trouble-cards-grid,
  .page-login__security-features-grid,
  .page-login__bonuses-grid,
  .page-login__responsible-features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 30px 0 40px;
  }
  .page-login__hero-content {
    padding: 0 15px;
  }
  .page-login__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  .page-login__hero-description {
    font-size: 1rem;
  }
  .page-login__login-form-container {
    padding: 30px 20px;
  }
  .page-login__btn-login,
  .page-login__btn-primary,
  .page-login__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__cta-area {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__troubleshooting-section,
  .page-login__security-section,
  .page-login__bonuses-section,
  .page-login__responsible-gaming-section,
  .page-login__faq-section,
  .page-login__final-cta-section {
    padding: 50px 0;
  }
  .page-login__container {
    padding: 0 15px;
  }
  .page-login__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .page-login__section-description {
    font-size: 0.95rem;
  }
  .page-login__benefits-grid,
  .page-login__steps-grid,
  .page-login__trouble-cards-grid,
  .page-login__security-features-grid,
  .page-login__bonuses-grid,
  .page-login__responsible-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__benefit-card,
  .page-login__step-card,
  .page-login__trouble-card,
  .page-login__security-item,
  .page-login__bonus-card,
  .page-login__responsible-item {
    padding: 25px;
  }
  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-login__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* All images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* All image containers responsive */
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__troubleshooting-section,
  .page-login__security-section,
  .page-login__bonuses-section,
  .page-login__responsible-gaming-section,
  .page-login__faq-section,
  .page-login__final-cta-section,
  .page-login__login-form-container,
  .page-login__benefit-card,
  .page-login__step-card,
  .page-login__trouble-card,
  .page-login__security-item,
  .page-login__bonus-card,
  .page-login__responsible-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll from content */
  }
  /* Specific padding for sections in mobile to prevent content touching edges */
  .page-login__benefits-section .page-login__container,
  .page-login__guide-section .page-login__container,
  .page-login__troubleshooting-section .page-login__container,
  .page-login__security-section .page-login__container,
  .page-login__bonuses-section .page-login__container,
  .page-login__responsible-gaming-section .page-login__container,
  .page-login__faq-section .page-login__container,
  .page-login__final-cta-section .page-login__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}