/**
 * Seynor Coaching - Styles améliorés pour les pages d'authentification
 * Connexion et inscription avec un design moderne inspiré de Valorant
 */

/* Arrière-plan spécial pour les pages d'authentification */
.auth-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-color-dark) 0%, var(--secondary-color) 100%);
  z-index: -1;
  overflow: hidden;
}

.auth-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/ui/backgrounds/valorant-pattern.png');
  background-size: cover;
  opacity: 0.05;
  z-index: -1;
}

.auth-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--secondary-color-dark) 70%);
  z-index: -1;
}

/* Conteneur principal */
.auth-container {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-md);
}

.auth-card {
  width: 100%;
  max-width: 1000px;
  background: rgba(15, 25, 35, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  position: relative;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

/* Côté image */
.auth-image {
  flex: 1;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  display: none;
}

.auth-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: transform 0.5s ease;
}

.auth-image:hover img {
  transform: scale(1.05);
}

.auth-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 25, 35, 0.7) 0%, rgba(15, 25, 35, 0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-xl);
  text-align: center;
}

.auth-image-logo {
  width: 120px;
  height: 120px;
  margin-bottom: var(--spacing-lg);
}

.auth-image-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-extrabold);
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.auth-image-subtitle {
  color: var(--text-color-secondary);
  max-width: 300px;
  margin-bottom: var(--spacing-xl);
}

/* Côté formulaire */
.auth-form-container {
  flex: 1;
  padding: var(--spacing-xl);
  position: relative;
}

.auth-form-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.auth-form-title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

.auth-form-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.auth-form-subtitle {
  color: var(--text-color-secondary);
  font-size: var(--font-size-md);
}

/* Formulaire */
.auth-form {
  margin-bottom: var(--spacing-lg);
}

.form-group {
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.form-input {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  color: var(--text-color);
  font-size: var(--font-size-md);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 70, 85, 0.1);
}

.form-input::placeholder {
  color: var(--text-color-muted);
}

.form-icon {
  position: absolute;
  left: 12px;
  top: 38px;
  color: var(--text-color-muted);
  transition: all 0.3s ease;
}

.form-group:focus-within .form-icon {
  color: var(--primary-color);
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 38px;
  color: var(--text-color-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.password-toggle:hover {
  color: var(--text-color);
}

.form-helper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.form-remember {
  display: flex;
  align-items: center;
}

.form-checkbox {
  position: relative;
  width: 18px;
  height: 18px;
  margin-right: var(--spacing-sm);
  cursor: pointer;
}

.form-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.form-checkbox:hover input ~ .checkmark {
  background-color: rgba(255, 255, 255, 0.08);
}

.form-checkbox input:checked ~ .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.form-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.form-checkbox .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-remember-text {
  font-size: var(--font-size-sm);
  color: var(--text-color-secondary);
}

.forgot-password {
  font-size: var(--font-size-sm);
  color: var(--text-color-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.forgot-password:hover {
  color: var(--primary-color);
}

.form-submit {
  width: 100%;
  padding: var(--spacing-md);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
  color: var(--text-color);
  border: none;
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.form-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 70, 85, 0.3);
}

.form-submit:hover::before {
  left: 100%;
}

.form-submit:active {
  transform: translateY(0);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: var(--spacing-lg) 0;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.auth-divider-text {
  padding: 0 var(--spacing-md);
  color: var(--text-color-secondary);
  font-size: var(--font-size-sm);
}

.social-login {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.social-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-button:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.social-button i {
  margin-right: var(--spacing-sm);
}

.auth-footer {
  text-align: center;
  margin-top: var(--spacing-lg);
}

.auth-footer-text {
  color: var(--text-color-secondary);
  font-size: var(--font-size-sm);
}

.auth-footer-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: all 0.3s ease;
}

.auth-footer-link:hover {
  color: var(--primary-color-light);
  text-decoration: underline;
}

/* Styles spécifiques à l'inscription */
.password-requirements {
  margin-top: var(--spacing-sm);
  font-size: var(--font-size-xs);
  color: var(--text-color-muted);
}

.password-requirements ul {
  list-style: none;
  padding-left: var(--spacing-md);
  margin-top: var(--spacing-xs);
}

.password-requirements li {
  margin-bottom: 2px;
  position: relative;
  padding-left: var(--spacing-sm);
}

.password-requirements li::before {
  content: '•';
  position: absolute;
  left: 0;
}

.password-requirements li.valid {
  color: var(--success-color);
}

.password-requirements li.invalid {
  color: var(--text-color-muted);
}

.riot-id-info {
  display: flex;
  align-items: center;
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-xs);
  color: var(--text-color-secondary);
}

.riot-id-info i {
  margin-right: var(--spacing-xs);
  color: var(--info-color);
}

.terms-checkbox {
  margin-bottom: var(--spacing-md);
}

.terms-text {
  font-size: var(--font-size-sm);
  color: var(--text-color-secondary);
}

.terms-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.terms-link:hover {
  text-decoration: underline;
}

/* Avantages premium */
.premium-benefits {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.premium-benefits-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  margin-bottom: var(--spacing-md);
  padding-left: 30px;
  position: relative;
  color: var(--text-color-secondary);
}

.benefits-list li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--primary-color);
}

.premium-cta {
  text-align: center;
  margin-top: var(--spacing-lg);
}

.premium-cta-text {
  color: var(--text-color-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-sm);
}

.premium-cta-button {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.premium-cta-button:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form-container {
  animation: fadeIn 0.5s ease-out;
}

/* Responsive */
@media (min-width: 992px) {
  .auth-image {
    display: block;
  }
}

@media (max-width: 768px) {
  .auth-card {
    max-width: 500px;
  }
  
  .social-login {
    flex-direction: column;
  }
  
  .form-helper {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .auth-form-container {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .auth-form-title {
    font-size: var(--font-size-h4);
  }
}
