@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');

.register-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #c1e6c5 0%, #e8f9e9 100%);
  font-family: 'Poppins', sans-serif;
  padding: 1rem}

.register-card {
  background-color: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 450px;
  text-align: center;
  position: relative;
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

.register-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.register-header {
  margin-bottom: 2rem;
}

.register-logo {
  max-width: 30%;
  width: 30%; 
  margin-bottom: 1rem;
  height: auto;
}

h2 {
  color: #2c5e2e;
  font-size: 1.6rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.register-form {
  background-color: #e8f9e9;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

label {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #2c5e2e;
  font-weight: 500;
}

.input-icon {
  font-size: 1rem;
  margin-right: 0.5rem;
  color: #4CAF50;
}

input {
  width: 100%;
  padding: 0.7rem 1rem; 
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.3s;
  background-color: white;
  box-sizing: border-box; 
}

input:focus {
  border-color: #4CAF50;
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.password-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
}

.toggle-password:hover {
  color: #4CAF50;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem; 
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem; 
  font-weight: 500;
  transition: all 0.3s;
  margin-top: 1rem;
}

.submit-btn:hover {
  background-color: #3c9f40;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.login-link {
  margin-top: 1rem;
  font-size: 0.85rem; 
  color: #555;
}

.login-btn {
  color: #4CAF50;
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.5rem;
  position: relative;
  transition: color 0.3s;
}

.login-btn:hover {
  color: #3c9f40;
}

.login-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #4CAF50;
  bottom: -3px;
  left: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.login-btn:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

@media (max-width: 768px) {
  .register-card {
    padding: 1.5rem;
    max-width: 400px;
  }

  h2 {
    font-size: 1.4rem;
  }

  input {
    padding: 0.6rem 0.8rem; 
    font-size: 0.85rem;
  }

  .submit-btn {
    padding: 0.7rem;
    font-size: 0.85rem;
  }

  .login-link {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .register-card {
    padding: 1rem;
    max-width: 300px;
  }

  h2 {
    font-size: 1.2rem;
  }

  input {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
  }

  .submit-btn {
    padding: 0.6rem;
    font-size: 0.8rem;
  }

  .login-link {
    font-size: 0.75rem;
  }
}

.password-rules {
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  text-align: left;
  border-left: 4px solid #4CAF50;
}

.password-rules h3 {
  color: #2c5e2e;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.password-rules ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.password-rules li {
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  padding-left: 20px;
  position: relative;
  transition: color 0.3s ease;
}

.password-rules li::before {
  content: "×";
  color: #ff4444;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.password-rules li.valid {
  color: #4CAF50;
}

.password-rules li.valid::before {
  content: "✓";
  color: #4CAF50;
}

.error-message {
  color: #ff4444; 
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

#divLang {
  position: fixed;
  top: 16px;
  right: 16px;
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  z-index: 9999;
}

  
  #divLang a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 28px;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.75rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    border: none;
  }
  
  #divLang a[href*="ln=zh"] {
    background: linear-gradient(135deg, #ef5350, #e53935);
  }
  
  #divLang a[href*="ln=ar"] {
    background: linear-gradient(135deg, #26a69a, #00897b);
  }
  
  #divLang a[href*="ln=en"] {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
  }
  
  #divLang a[href*="ln=es"] {
    background: linear-gradient(135deg, #ffa726, #fb8c00);
  }
  
  #divLang a:hover {
    transform: translateX(3px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  }
  
  #divLang a.active[href*="ln=zh"] {
    background: linear-gradient(135deg, #c62828, #b71c1c);
    box-shadow: 0 3px 10px rgba(198, 40, 40, 0.4);
    font-weight: 700;
    transform: translateX(5px);
  }
  
  #divLang a.active[href*="ln=ar"] {
    background: linear-gradient(135deg, #00695c, #004d40);
    box-shadow: 0 3px 10px rgba(0, 105, 92, 0.4);
    font-weight: 700;
    transform: translateX(5px);
  }
  
  #divLang a.active[href*="ln=en"] {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    box-shadow: 0 3px 10px rgba(21, 101, 192, 0.4);
    font-weight: 700;
    transform: translateX(5px);
  }
  
  #divLang a.active[href*="ln=es"] {
    background: linear-gradient(135deg, #e65100, #bf360c);
    box-shadow: 0 3px 10px rgba(230, 81, 0, 0.4);
    font-weight: 700;
    transform: translateX(1px);
  }
  
  #divLang a.active::before {
    content: '●';
    position: absolute;
    left: 5px;
    font-size: 0.6rem;
    animation: pulse 1.5s ease-in-out infinite;
  }
  
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }
  
  #divLang a span {
    position: relative;
    z-index: 1;
  }

    @media (max-width: 600px) {
      #divLang {
        top: 10px;
        right: 10px;
        gap: 0.35rem;
      }
    }
  
    #divLang a {
      width: 40px;
      height: 26px;
      font-size: 0.7rem;
      border-radius: 7px;
    }

  @media (max-width: 400px) {
    #divLang {
      gap: 0.3rem;
    }
  
    #divLang a {
      width: 38px;
      height: 24px;
      font-size: 0.65rem;
      border-radius: 6px;
    }
  
    #divLang a.active::before {
      left: 3px;
      font-size: 0.5rem;
    }
  }