/* style/login.css */

/* Variables */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --button-login-bg: #C30808;
  --button-login-bg-hover: #A60707; /* Darkened version of #C30808 */
  --button-login-text: #FFFF00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-light: #e0e0e0;
  --bg-light: #f9f9f9;
  --primary-color-darker: #016330; /* Darkened version of #017439 */
}

/* Base styles for the page content */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--secondary-color); /* Body background is white */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(1, 116, 57, 0.8) 50%, var(--secondary-color) 100%);
  color: var(--text-light); /* Light text on gradient background */
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min image size requirement */
  min-height: 200px; /* Min image size requirement */
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 600px;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__main-heading {
  font-size: 3em;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-login__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

/* Login Form */
.page-login__form-wrapper {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.page-login__login-form {
  text-align: left;
}

.page-login__form-group {
  margin-bottom: 20px;
}

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-dark);
}

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  font-size: 1em;
  color: var(--text-dark);
}

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.page-login__btn-login,
.page-login__btn-register {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box; /* Ensure padding doesn't make it wider */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-login__btn-login {
  background-color: var(--button-login-bg); /* Custom login color */
  color: var(--button-login-text); /* Custom login text color */
}

.page-login__btn-login:hover {
  background-color: var(--button-login-bg-hover); 
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__btn-register {
  background-color: var(--button-login-bg); /* Custom register color */
  color: var(--button-login-text); /* Custom register text color */
}

.page-login__btn-register:hover {
  background-color: var(--button-login-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__forgot-password {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9em;
}

.page-login__forgot-password a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-login__forgot-password a:hover {
  text-decoration: underline;
}

/* General Section Styles */
.page-login__section {
  padding: 60px 20px;
  margin-bottom: 20px;
}

.page-login__section:nth-of-type(even) {
  background-color: var(--bg-light); /* Light background for alternating sections */
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%; /* Ensure container fills width on mobile */
  box-sizing: border-box;
}

.page-login__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-dark);
}

/* Why Choose Us Section */
.page-login__why-choose-us {
  background-color: var(--secondary-color);
}

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

.page-login__feature-item {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-login__feature-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Min image size requirement */
  min-height: 200px; /* Min image size requirement */
}

.page-login__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Unblocked Access Section */
.page-login__unblocked-access {
  background-color: var(--bg-light);
}

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

.page-login__method-item {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__method-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-login__method-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Min image size requirement */
  min-height: 200px; /* Min image size requirement */
}

.page-login__method-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-login__btn-read-more {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-read-more:hover {
  background-color: var(--primary-color-darker);
  transform: translateY(-2px);
}

/* Game Overview Section */
.page-login__game-overview {
  background-color: var(--secondary-color);
}

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

.page-login__game-card {
  background-color: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-login__game-card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-width: 200px; /* Min image size requirement */
  min-height: 200px; /* Min image size requirement */
}

.page-login__game-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}