* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #ffffff;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background-image: linear-gradient(to bottom right, #ffffff, #f5f5f5);
}

.container {
  display: flex;
  width: 100%;
  max-width: 1100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
}

.register-section {
  flex: 1;
  padding: 40px;
  background-color: #ffffff;
  overflow-y: auto;
  max-height: 90vh;
}

.graphic-section {
  flex: 1;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: white;
  position: relative;
  overflow: hidden;
}

.logo {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: #1e3c72;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  color: white;
  font-weight: bold;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #1e3c72;
}

h1 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #1e3c72;
}

.subtitle {
  color: #666;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

input[type="text"],
input[type="password"],
input[type="email"],
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s;
  background-color: white;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus {
  border-color: #1e3c72;
  box-shadow: 0 0 0 2px rgba(30, 60, 114, 0.2);
  outline: none;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 8px;
}

.strength-bar {
  height: 4px;
  background-color: #eee;
  border-radius: 2px;
  margin-bottom: 4px;
  overflow: hidden;
}

.strength-bar::before {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  background-color: #e74c3c;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-bar.weak::before {
  width: 33%;
  background-color: #e74c3c;
}

.strength-bar.medium::before {
  width: 66%;
  background-color: #f39c12;
}

.strength-bar.strong::before {
  width: 100%;
  background-color: #2ecc71;
}

.strength-text {
  font-size: 12px;
  color: #666;
}

.terms-agreement {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.terms-agreement input {
  margin-right: 10px;
  margin-top: 3px;
}

.terms-agreement label {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.4;
}

.terms-link {
  color: #1e3c72;
  text-decoration: none;
  font-weight: 500;
}

.terms-link:hover {
  text-decoration: underline;
}

.register-button {
  width: 100%;
  padding: 14px;
  background-color: #1e3c72;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 20px;
}

.register-button:hover {
  background-color: #2a5298;
}

.register-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.login-link {
  text-align: center;
  margin-top: 20px;
}

.login-link a {
  color: #1e3c72;
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

.graphic-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

.graphic-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  opacity: 0.9;
}

.football-field {
  width: 100%;
  max-width: 300px;
  height: 200px;
  background-color: #3a7d34;
  border: 2px solid white;
  border-radius: 10px;
  position: relative;
  margin-bottom: 40px;
}

.center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 2px solid white;
  border-radius: 50%;
}

.center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
}

.penalty-area {
  position: absolute;
  width: 80px;
  height: 120px;
  border: 2px solid white;
  top: 50%;
  transform: translateY(-50%);
}

.penalty-area.left {
  left: 0;
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.penalty-area.right {
  right: 0;
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.goal {
  position: absolute;
  width: 4px;
  height: 30px;
  background-color: white;
  top: 50%;
  transform: translateY(-50%);
}

.goal.left {
  left: 0;
}

.goal.right {
  right: 0;
}

.benefits {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  max-width: 350px;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.benefit-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.benefit-content h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: white;
}

.benefit-content p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.4;
}

/* SweetAlert Custom Styles */
.swal2-popup {
  border-radius: 15px !important;
}

.swal2-confirm {
  background-color: #1e3c72 !important;
}

/* Animasi untuk SweetAlert */
@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

.football-animation {
  animation: bounce 0.5s ease infinite alternate;
  font-size: 40px;
  position: absolute;
  top: 20px;
  right: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .graphic-section {
    order: -1;
    padding: 30px 20px;
  }

  .register-section {
    padding: 30px 20px;
    max-height: none;
  }

  .football-field {
    max-width: 250px;
    height: 150px;
  }

  .benefits {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .benefit {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .terms-agreement {
    flex-direction: column;
    align-items: flex-start;
  }

  .terms-agreement input {
    margin-bottom: 10px;
  }
}
.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.back-button:hover {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
.back-button i {
  margin-right: 8px;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    user-select: none;
}

.toggle-password:hover {
    color: #1e3c72;
}

.toggle-password i {
    font-size: 18px;
}
